another question:
when I create a window, I use function CALLBACK WndProc(), if another dialog box will be triggered by clicking a certain button in this window, I may use another function CALLBACK DlgProc(). if there is other more, I may use another CALLBACK DlgProc()....
could I integrate all those DlgProc() or ToolDlgProc() or other functions in WndProc()? then it may looks more simple.
I mean, all those functions looked the same:
like
LRESULT CALLBACK WndProc(....)
{
switch(msg)
{
case WM_COMMAND:....
case .....
}
}
BOOL CALLBACK DlgProc(....)
{
switch(Message)
{
case WM_INITDIALOG:
case ...
}
}