Click here to Skip to main content
15,925,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to solve this error? Pin
Cedric Moonen29-Nov-06 2:03
Cedric Moonen29-Nov-06 2:03 
GeneralRe: How to solve this error? Pin
LaHaHa29-Nov-06 2:12
LaHaHa29-Nov-06 2:12 
QuestionHow to add .lib in the Visual studio .net Pin
LaHaHa29-Nov-06 1:42
LaHaHa29-Nov-06 1:42 
AnswerRe: How to add .lib in the Visual studio .net Pin
Chris Losinger29-Nov-06 2:54
professionalChris Losinger29-Nov-06 2:54 
QuestionCOleVariant::GetByteArrayFromVariantArray Pin
weehau29-Nov-06 1:30
weehau29-Nov-06 1:30 
AnswerRe: COleVariant::GetByteArrayFromVariantArray Pin
CPallini29-Nov-06 2:06
mveCPallini29-Nov-06 2:06 
QuestionSetWindowPos() woes Pin
DanB198329-Nov-06 1:22
DanB198329-Nov-06 1:22 
AnswerRe: SetWindowPos() woes Pin
Roger Stoltz29-Nov-06 1:44
Roger Stoltz29-Nov-06 1:44 
You don't provide information about why the assertion fails, but I'm quite confident that it fails since the window is not a window yet when calling SetWindowPos() from InitInstance().

Override OnSize() and call SetWindowPos() from there.
Don't forget to add some conditions to control whether the window should on top or not.

Hope this helps
--
Roger


"It's supposed to be hard, otherwise anybody could do it!" - selfquote

"No one remembers a coward!" - Jan Elfström 1998
"...but everyone remembers an idiot!" - my lawyer 2005 when heard of Jan's saying above

QuestionRe: SetWindowPos() woes Pin
prasad_som29-Nov-06 2:43
prasad_som29-Nov-06 2:43 
AnswerRe: SetWindowPos() woes Pin
Roger Stoltz29-Nov-06 4:21
Roger Stoltz29-Nov-06 4:21 
GeneralRe: SetWindowPos() woes Pin
prasad_som29-Nov-06 22:14
prasad_som29-Nov-06 22:14 
GeneralRe: SetWindowPos() woes Pin
Roger Stoltz29-Nov-06 23:27
Roger Stoltz29-Nov-06 23:27 
GeneralRe: SetWindowPos() woes Pin
prasad_som29-Nov-06 23:38
prasad_som29-Nov-06 23:38 
GeneralRe: SetWindowPos() woes Pin
Roger Stoltz30-Nov-06 0:17
Roger Stoltz30-Nov-06 0:17 
AnswerRe: SetWindowPos() woes Pin
CPallini29-Nov-06 1:51
mveCPallini29-Nov-06 1:51 
QuestionRe: SetWindowPos() woes Pin
David Crow29-Nov-06 2:43
David Crow29-Nov-06 2:43 
QuestionCRecordset Limitation Pin
Pasha829-Nov-06 1:11
Pasha829-Nov-06 1:11 
AnswerRe: CRecordset Limitation [modified] Pin
prasad_som29-Nov-06 2:30
prasad_som29-Nov-06 2:30 
QuestionRe: CRecordset Limitation Pin
David Crow29-Nov-06 2:47
David Crow29-Nov-06 2:47 
AnswerRe: CRecordset Limitation Pin
prasad_som29-Nov-06 2:51
prasad_som29-Nov-06 2:51 
GeneralRe: CRecordset Limitation Pin
Pasha829-Nov-06 3:36
Pasha829-Nov-06 3:36 
GeneralRe: CRecordset Limitation Pin
prasad_som29-Nov-06 22:17
prasad_som29-Nov-06 22:17 
GeneralRe: CRecordset Limitation Pin
Pasha81-Dec-06 19:38
Pasha81-Dec-06 19:38 
QuestionCRecordset Limitation Pin
Pasha829-Nov-06 1:06
Pasha829-Nov-06 1:06 
Questionsockets Pin
69 Bay29-Nov-06 1:01
69 Bay29-Nov-06 1:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.