I want to call DIALOG2, from DIALOG1, how do I perform that? Also, how do I use FindWindow to detect if Notepad.exe is running? Thanks a lot. Happy Holidays.
Printable View
I want to call DIALOG2, from DIALOG1, how do I perform that? Also, how do I use FindWindow to detect if Notepad.exe is running? Thanks a lot. Happy Holidays.
I guess you use showwindow to show the dialog. FindWindow won't detect which exe's are running, there's some api's that enumerates the processes which you can retrieve the exe names from but i don't remember them. However you can use findwindow to find a window by it's classname or caption. Classname would be best for notepad with variable caption.
I know, FindWindow(classname,cap);, how to find the window's classname, caption?
How to close my current DIALOG1? DestroyWindow(hwnd)?
i suppose you can postmessage a WM_CLOSE to it. You can use Spy++ to find out what classname notepad uses.
Can anyone show me how to link from DIALOG1 to DIALOG2. Please show me the whole code. Thanks.
What do you mean by "link" ?