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

C / C++ / MFC

 
AnswerRe: Minimizing windows Pin
Jörgen Sigvardsson22-Aug-06 13:46
Jörgen Sigvardsson22-Aug-06 13:46 
QuestionIn MFC, how can I find the actual signature of a function which is combined with a specific notification [modified] Pin
David.YueZuo22-Aug-06 12:33
David.YueZuo22-Aug-06 12:33 
AnswerRe: In MFC, how can I find the actual signature of a function which is combined with a specific notification Pin
Mike Dimmick23-Aug-06 10:54
Mike Dimmick23-Aug-06 10:54 
QuestionReentrancy and Thread Safety Pin
Richard Andrew x6422-Aug-06 12:30
professionalRichard Andrew x6422-Aug-06 12:30 
AnswerRe: Reentrancy and Thread Safety Pin
Dave Calkins22-Aug-06 18:06
Dave Calkins22-Aug-06 18:06 
QuestionActive window Pin
jpyp22-Aug-06 10:32
jpyp22-Aug-06 10:32 
AnswerRe: Active window Pin
jk chan22-Aug-06 14:16
jk chan22-Aug-06 14:16 
AnswerRe: Active window Pin
jpyp23-Aug-06 8:26
jpyp23-Aug-06 8:26 
krishnadevank wrote:
Check your Z- order of your windows.


I did and I can't see what is wrong. Here is more info.

In the OnCreate function of the main window, I position the window as follows:
<br />
SetWindowPos(&wndBottom, 0, 0, 0, 0, (SWP_NOSIZE | SWP_NOMOVE));<br />


Then in the main window code, I create each child window as follows:
page is a global array that contains info of all openned child windows.
<br />
page[0].pDlg = new CMyDlg0(this);<br />
page[0].pDlg->Create(ID of this dialog, NULL);<br />
page[0].pWnd->SetWindowPos(&wndTop, 20, 100, 0, 0, SWP_NOSIZE);<br />
<br />
page[1].pDlg = new CMyDlg1(this);<br />
page[1].pDlg->Create(ID of this dialog, NULL);<br />
page[1].pWnd->SetWindowPos(&wndTop, 20, 100, 0, 0, SWP_NOSIZE);<br />


In the CMyDlg0 OnInitDialog() function:
<br />
page[0].pWnd = this;<br />


In the CMyDlg1 OnInitDialog() function:
<br />
page[1].pWnd = this;<br />


We didn't design this code. We inherited it from the company that design the app for us. We only maintain the code. We would have done things differently but we are now stuck with this.

Thanks in advance for your help!


jpyp

GeneralRe: Active window Pin
jk chan23-Aug-06 14:15
jk chan23-Aug-06 14:15 
AnswerRe: Active window Pin
jpyp24-Aug-06 8:11
jpyp24-Aug-06 8:11 
GeneralRe: Active window Pin
jk chan24-Aug-06 14:25
jk chan24-Aug-06 14:25 
QuestionCMap with integer keys [modified] Pin
bob1697222-Aug-06 10:16
bob1697222-Aug-06 10:16 
AnswerRe: CMap with integer keys Pin
Jörgen Sigvardsson22-Aug-06 13:56
Jörgen Sigvardsson22-Aug-06 13:56 
GeneralRe: CMap with integer keys [modified] Pin
bob1697222-Aug-06 18:37
bob1697222-Aug-06 18:37 
GeneralRe: CMap with integer keys Pin
Blake Miller29-Sep-06 8:37
Blake Miller29-Sep-06 8:37 
GeneralRe: CMap with integer keys Pin
bob169721-Oct-06 7:56
bob169721-Oct-06 7:56 
GeneralRe: CMap with integer keys Pin
Blake Miller2-Oct-06 2:22
Blake Miller2-Oct-06 2:22 
Questionfunction hooks Pin
inebriate22-Aug-06 8:55
inebriate22-Aug-06 8:55 
AnswerRe: function hooks Pin
Jörgen Sigvardsson22-Aug-06 13:54
Jörgen Sigvardsson22-Aug-06 13:54 
AnswerRe: function hooks Pin
Dave Calkins22-Aug-06 18:15
Dave Calkins22-Aug-06 18:15 
Questionexceptions Pin
jon-8022-Aug-06 8:48
professionaljon-8022-Aug-06 8:48 
QuestionRe: exceptions Pin
David Crow22-Aug-06 8:57
David Crow22-Aug-06 8:57 
AnswerRe: exceptions Pin
jon-8022-Aug-06 9:06
professionaljon-8022-Aug-06 9:06 
GeneralRe: exceptions Pin
Zac Howland22-Aug-06 9:10
Zac Howland22-Aug-06 9:10 
GeneralRe: exceptions Pin
David Crow22-Aug-06 9:21
David Crow22-Aug-06 9:21 

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.