|
-
Dec 20th, 2001, 03:56 PM
#1
Thread Starter
Fanatic Member
How to call a Form
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.

prog_tom
JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
http://physics.sviesoft.com/forum
-
Dec 20th, 2001, 04:01 PM
#2
transcendental analytic
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.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Dec 20th, 2001, 04:06 PM
#3
Thread Starter
Fanatic Member
FindWindow
I know, FindWindow(classname,cap);, how to find the window's classname, caption?
How to close my current DIALOG1? DestroyWindow(hwnd)?

prog_tom
JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
http://physics.sviesoft.com/forum
-
Dec 20th, 2001, 05:13 PM
#4
transcendental analytic
i suppose you can postmessage a WM_CLOSE to it. You can use Spy++ to find out what classname notepad uses.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Dec 20th, 2001, 07:58 PM
#5
Thread Starter
Fanatic Member
Call?
Can anyone show me how to link from DIALOG1 to DIALOG2. Please show me the whole code. Thanks.

prog_tom
JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
http://physics.sviesoft.com/forum
-
Dec 22nd, 2001, 03:17 PM
#6
What do you mean by "link" ?
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|