Window Pains - Dialog Boxes
I have a modal dialog box (this is all written in pure win32 api btw, no MFC) - when you press a button on it, it pops up an Open File common dialog box. Fine. But my problem is i can''t click on the Open file box?! The mouse goes over it fine, it just wont focus on it! Its not just the OpenFile dialog either - normal MessageBox()es wont focus either. I''ve tried both setting the owner HWND to NULL and hDlg (the handle to my modal dialog box).
I''ve worked around the problem by killing off the dialog box before it displays the openfile box - then reinitialising it when the openfile closes. Now it may work, but I really dont like it. Can anyone help? i''ll post some code if you need it.
jumble-----------
Is your main dialog just modal, or system modal?
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
Just modal. I created it using DialogBox() - if it helps.
jumble-----------
I remember doing pure Win32 Dialog boxes. Never got this problem though. Make sure the parent HWND is pointing to the actually main application window. I think. Just try it. If this doesn''t work, post the entire code section (use [ source ] and [ /source ] if you do though, please) .
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement