   How to get hwnd of control in a dialog?
  I can get hwnd in WM_COMMAND by click control.But in create dialog how to know hwnd in WM_INITDIALOG?   
  You can use GetDlgItem.  It takes the handle of the parent window and the identifier of the control and returns the window handle.Illco   