Click here to Skip to main content
15,900,511 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Child to Popup dynamically... Pin
Naveen17-May-06 22:33
Naveen17-May-06 22:33 
GeneralRe: Child to Popup dynamically... Pin
Nishad S17-May-06 22:17
Nishad S17-May-06 22:17 
AnswerRe: Child to Popup dynamically... Pin
_Beren_17-May-06 22:24
_Beren_17-May-06 22:24 
GeneralRe: Child to Popup dynamically... Pin
Nishad S17-May-06 22:31
Nishad S17-May-06 22:31 
AnswerRe: Child to Popup dynamically... Pin
Laxman Auti17-May-06 22:52
Laxman Auti17-May-06 22:52 
AnswerRe: Child to Popup dynamically... Pin
_Beren_17-May-06 23:07
_Beren_17-May-06 23:07 
GeneralRe: Child to Popup dynamically... Pin
Nishad S17-May-06 23:09
Nishad S17-May-06 23:09 
GeneralRe: Child to Popup dynamically... Pin
_Beren_17-May-06 23:41
_Beren_17-May-06 23:41 
I'm getting more and more confused...

WS_CHILD is not compatible with WS_POPUP, so your control is a child window or a popup window, can't be an hybrid. If you change WS_CHILD to WS_POPUP then you must change the parent window to NULL. See SetParent on MSDN remarks section:


For compatibility reasons, SetParent does not modify the WS_CHILD or WS_POPUP window styles of the window whose parent is being changed. Therefore, if hWndNewParent is NULL, you should also clear the WS_CHILD bit and set the WS_POPUP style after calling SetParent. Conversely, if hWndNewParent is not NULL and the window was previously a child of the desktop, you should clear the WS_POPUP style and set the WS_CHILD style before calling SetParent.


If the control have a parent differen than the Desktop your control MUST be WS_CHILD, otherwise it MUST be WS_POPUP.

-- modified at 5:47 Thursday 18th May, 2006
GeneralRe: Child to Popup dynamically... Pin
Nishad S18-May-06 0:13
Nishad S18-May-06 0:13 
QuestionSetWindowText Error Pin
VinayCool17-May-06 21:16
VinayCool17-May-06 21:16 
AnswerRe: SetWindowText Error Pin
Cedric Moonen17-May-06 21:21
Cedric Moonen17-May-06 21:21 
GeneralRe: SetWindowText Error Pin
VinayCool17-May-06 21:38
VinayCool17-May-06 21:38 
AnswerRe: SetWindowText Error Pin
Hamid_RT17-May-06 21:32
Hamid_RT17-May-06 21:32 
AnswerRe: SetWindowText Error Pin
VinayCool17-May-06 21:42
VinayCool17-May-06 21:42 
GeneralRe: SetWindowText Error Pin
VinayCool17-May-06 21:58
VinayCool17-May-06 21:58 
GeneralRe: SetWindowText Error Pin
Hamid_RT17-May-06 22:00
Hamid_RT17-May-06 22:00 
AnswerRe: SetWindowText Error Pin
VinayCool17-May-06 22:42
VinayCool17-May-06 22:42 
GeneralRe: SetWindowText Error Pin
Eytukan17-May-06 22:03
Eytukan17-May-06 22:03 
GeneralRe: SetWindowText Error Pin
Hamid_RT17-May-06 22:18
Hamid_RT17-May-06 22:18 
GeneralRe: SetWindowText Error Pin
Eytukan17-May-06 22:47
Eytukan17-May-06 22:47 
GeneralRe: SetWindowText Error Pin
Hamid_RT17-May-06 23:13
Hamid_RT17-May-06 23:13 
GeneralRe: SetWindowText Error Pin
Laxman Auti17-May-06 22:19
Laxman Auti17-May-06 22:19 
GeneralRe: SetWindowText Error Pin
Eytukan17-May-06 22:51
Eytukan17-May-06 22:51 
GeneralRe: SetWindowText Error Pin
Laxman Auti17-May-06 23:04
Laxman Auti17-May-06 23:04 
GeneralRe: SetWindowText Error Pin
Eytukan17-May-06 23:08
Eytukan17-May-06 23:08 

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.