By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,166 Members | 1,004 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,166 IT Pros & Developers. It's quick & easy.

Dialog window procedure

P: n/a
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

Jun 28 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
>
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
Jun 28 '06 #2

P: n/a

"vinayshah" <av********@gmail.com> wrote:
(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
Jun 28 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.