Click here to Skip to main content
16,007,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: simple multiline edit ctrl Pin
Paolo Messina5-Aug-01 6:20
professionalPaolo Messina5-Aug-01 6:20 
GeneralCListCtrl Question Pin
3-Aug-01 12:25
suss3-Aug-01 12:25 
GeneralRe: CListCtrl Question Pin
Michael Dunn3-Aug-01 13:11
sitebuilderMichael Dunn3-Aug-01 13:11 
QuestionHow to simulate RButtonDblClik with mouse_event()? Pin
3-Aug-01 10:42
suss3-Aug-01 10:42 
AnswerRe: How to simulate RButtonDblClik with mouse_event()? Pin
Paolo Messina3-Aug-01 11:54
professionalPaolo Messina3-Aug-01 11:54 
Generalfile copying -- help please Pin
Ganesh Ramaswamy3-Aug-01 10:07
Ganesh Ramaswamy3-Aug-01 10:07 
GeneralFont Combo Box Pin
3-Aug-01 9:12
suss3-Aug-01 9:12 
QuestionHELP !!!!!!!!, How to create child window in main window ???? Pin
JerzyPeter3-Aug-01 4:35
JerzyPeter3-Aug-01 4:35 
I want to use a couple of child windows in my SDI application (with caption, min and max boxes, etc...(eg. WS_OVERLAPPEDWINDOW). They are children of CMyView. When I create them in response to CMyView's WM_CREATE, the children are not shown. But when I regster a class for my children, the are shown. Why is like that?

But the real problem is that those windows don't have a focus (even when a caption bar is clicked they still have inactive caption!!). Pressing a key generates WM_KEYDOWN for CMyView not for the child window.

Another problem: If I create a button in the child window and click it, the button has focus all the time, even when other child window are clicked, or main window, or menu. I cannot find any example of how to create child windows in a main window. I have over 40 books on VC++ but none of those explain this.

Thank you any suggestions

(The same problem occurs when children are created in SDI without Doc/View support).

Jerzy


Confused | :confused: Confused | :confused: Confused | :confused: Confused | :confused: Confused | :confused: Confused | :confused: Confused | :confused: Confused | :confused:
AnswerRe: HELP !!!!!!!!, How to create child window in main window ???? Pin
Jake Palmer3-Aug-01 6:58
Jake Palmer3-Aug-01 6:58 
GeneralRe: HELP !!!!!!!!, How to create child window in main window ???? Pin
JerzyPeter3-Aug-01 10:38
JerzyPeter3-Aug-01 10:38 
GeneralRe: HELP !!!!!!!!, How to create child window in main window ???? Pin
Jon Sagara3-Aug-01 10:55
Jon Sagara3-Aug-01 10:55 
GeneralRe: HELP !!!!!!!!, How to create child window in main window ???? Pin
Ben Burnett3-Aug-01 13:46
Ben Burnett3-Aug-01 13:46 
GeneralRe: HELP !!!!!!!!, How to create child window in main window ???? Pin
JerzyPeter4-Aug-01 8:54
JerzyPeter4-Aug-01 8:54 
GeneralRe: HELP !!!!!!!!, How to create child window in main window ???? Pin
Ben Burnett4-Aug-01 11:15
Ben Burnett4-Aug-01 11:15 
GeneralRe: HELP !!!!!!!!, How to create child window in main window ???? Pin
4-Aug-01 14:04
suss4-Aug-01 14:04 
GeneralLinker options Pin
Steve Thresher3-Aug-01 4:28
Steve Thresher3-Aug-01 4:28 
GeneralRe: Linker options Pin
Stephen Kellett6-Aug-01 11:20
Stephen Kellett6-Aug-01 11:20 
GeneralCPropertyPageEx Titles Pin
3-Aug-01 4:16
suss3-Aug-01 4:16 
GeneralCommand Line String Pin
Steve Thresher3-Aug-01 3:27
Steve Thresher3-Aug-01 3:27 
GeneralRe: Command Line String Pin
3-Aug-01 3:38
suss3-Aug-01 3:38 
GeneralRe: Command Line String Pin
Steve Thresher3-Aug-01 4:25
Steve Thresher3-Aug-01 4:25 
GeneralHelp, help, I am a retard Pin
3-Aug-01 3:09
suss3-Aug-01 3:09 
GeneralRe: Help, help, I am a retard Pin
Not Active3-Aug-01 3:22
mentorNot Active3-Aug-01 3:22 
GeneralRe: Help, help, I am a retard Pin
Tim Deveaux3-Aug-01 5:38
Tim Deveaux3-Aug-01 5:38 
Generala question about Project workspace Pin
Gérald Mercet3-Aug-01 3:06
Gérald Mercet3-Aug-01 3:06 

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.