Dialog window procedure

V

vinayshah

Hai all.



I just wanted to know how the dialog works.. I mean each
window has its window procedure.. In a dialog box you have many windows
say for example edit, button etc.. but still the parent i.e the dialog
gets the WM_COMMAND message and it calls the respective procedure.. so
does it mean that the dialog procedure calls the respective window
procedure.. I mean edit or button window procedure.





Thanks in advance
 
B

benben

I just wanted to know how the dialog works.. I mean each
window has its window procedure.. In a dialog box you have many windows
say for example edit, button etc.. but still the parent i.e the dialog
gets the WM_COMMAND message and it calls the respective procedure.. so
does it mean that the dialog procedure calls the respective window
procedure.. I mean edit or button window procedure.

Windows-specific questions are off topic here.

Hint 1: ask it again in a windows specific newsgroups such as
microsoft.public.win32.programmer.ui

Hint 2: google SendMessage.

Ben
 
R

Robbie Hatley

vinayshah said:
(questions about Microsoft Windows dialog boxes)

Wrong group. Try these:

comp.os.ms-windows.programmer.win32 (I set followup to here)
microsoft.public.win32.programmer
microsoft.public.win32.programmer.ui

Also get Charles Petzold's book "Programming Windows". Doesn't
cover MFC, .NET, etc; but does cover the underlying Win32 API.

I'll tell you this much:

- Dialog procs are callback functions. You don't call them;
they call you.
- You don't have to worry about window procs for controls;
that's all automatic. Just handle the basic messages sent
to the dialog proc, esp. WM_INITDIALOG and WM_COMMAND.
- Return 1 for messages you handle, 0 for messages you don't.

I do this stuff a lot at work, where I maintain a large Windows app.
If you get stuck and need tips, feel free to email me. (Uncorrupt
my address first, of course. Convert "at" to "@" and "dot" to "."
and remove the spaces. I mangle it when posting to Usenet to reduce
spam.)

--
Cheers,
Robbie Hatley
Tustin, CA, USA
lone wolf intj at pac bell dot net
home dot pac bell dot net slant earnur slant
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,286
Latest member
ChristieSo

Latest Threads

Top