Click here to Skip to main content
15,908,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: about Registry Pin
Maer7279-Nov-01 18:25
Maer7279-Nov-01 18:25 
GeneralCListCtrl window disappears?! Pin
Tommy H D Svensson8-Nov-01 22:57
Tommy H D Svensson8-Nov-01 22:57 
GeneralRe: CListCtrl window disappears?! Pin
Tomasz Sowinski8-Nov-01 23:30
Tomasz Sowinski8-Nov-01 23:30 
GeneralRe: CListCtrl window disappears?! Pin
Tommy H D Svensson9-Nov-01 1:13
Tommy H D Svensson9-Nov-01 1:13 
GeneralRe: CListCtrl window disappears?! Pin
Tomasz Sowinski9-Nov-01 1:27
Tomasz Sowinski9-Nov-01 1:27 
GeneralRe: CListCtrl window disappears?! Pin
Tommy H D Svensson9-Nov-01 1:37
Tommy H D Svensson9-Nov-01 1:37 
GeneralRe: CListCtrl window disappears?! Pin
Tomasz Sowinski9-Nov-01 1:57
Tomasz Sowinski9-Nov-01 1:57 
GeneralRe: CListCtrl window disappears?! Pin
Tommy H D Svensson9-Nov-01 2:22
Tommy H D Svensson9-Nov-01 2:22 
[Tomasz, please send me a mail instead because I have to poll for new messages... don't know why but I'm not getting any replies in my mailbox.]

Yes, I clicked the tab -> the dialog with the CListCtrl showed up -> I clicked the CListCtrl somewhere -> tabbed away -> tabbed back -> the CListCtrl is gone.

Now I wanted to check which window was on the top of the z-order by using GetTopWindow(). And I did this by reacting to a click on the dlg, not the CListCtrl, AFTER I had toggled back the app (that is when the CListCtrl had disappeared). So I set a breakpoint in the OnLButtonDown handler to check the handles for the dialog and the ctrl. If the CListCtrl is beneath the dialog then the handles of ctrl and top should NOT be equal. At least that's what I thought...

void CsomeDlg::OnLButtonDown(UINT nFlags, CPoint point)
{
CWnd* ctrl = &m_List;
CWnd* dlg = this;
CWnd* top = GetTopWindow();
}

The handles were all different... but that maybe depends on something else... what wa important here was that when I pressed F5 to continue running the app, the CListCtrl showed up again...?!?!


GeneralRe: CListCtrl window disappears?! Pin
Tomasz Sowinski9-Nov-01 2:40
Tomasz Sowinski9-Nov-01 2:40 
GeneralRe: CListCtrl window disappears?! Pin
Tommy H D Svensson9-Nov-01 2:59
Tommy H D Svensson9-Nov-01 2:59 
GeneralRe: CListCtrl window disappears?! Pin
Tomasz Sowinski9-Nov-01 3:07
Tomasz Sowinski9-Nov-01 3:07 
GeneralRe: CListCtrl window disappears?! Pin
Tommy H D Svensson9-Nov-01 5:58
Tommy H D Svensson9-Nov-01 5:58 
GeneralRe: CListCtrl window disappears?! Pin
Tommy H D Svensson9-Nov-01 1:23
Tommy H D Svensson9-Nov-01 1:23 
GeneralRemoving Menu from Mainframe Pin
[James Pullicino]8-Nov-01 21:51
[James Pullicino]8-Nov-01 21:51 
GeneralRe: Removing Menu from Mainframe Pin
Tomasz Sowinski8-Nov-01 23:13
Tomasz Sowinski8-Nov-01 23:13 
GeneralGDI+ Pin
AJ1238-Nov-01 21:37
AJ1238-Nov-01 21:37 
GeneralRe: GDI+ Pin
Christian Graus8-Nov-01 22:04
protectorChristian Graus8-Nov-01 22:04 
GeneralRe: GDI+ Pin
AJ1239-Nov-01 3:07
AJ1239-Nov-01 3:07 
GeneralRe: GDI+ Pin
AJ12310-Nov-01 4:28
AJ12310-Nov-01 4:28 
GeneralSource Code of a Simple Calculator Pin
8-Nov-01 18:51
suss8-Nov-01 18:51 
GeneralRe: Source Code of a Simple Calculator Pin
Jon Sagara8-Nov-01 21:06
Jon Sagara8-Nov-01 21:06 
GeneralRe: Source Code of a Simple Calculator Pin
Nish Nishant8-Nov-01 21:23
sitebuilderNish Nishant8-Nov-01 21:23 
GeneralRe: Source Code of a Simple Calculator Pin
Christian Graus8-Nov-01 22:06
protectorChristian Graus8-Nov-01 22:06 
GeneralRe: Source Code of a Simple Calculator Pin
ShirtLifter8-Nov-01 22:14
ShirtLifter8-Nov-01 22:14 
GeneralRe: Source Code of a Simple Calculator Pin
Christian Graus8-Nov-01 22:21
protectorChristian Graus8-Nov-01 22: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.