Original Post
everytime I try to use this function it crashes my program. I''m not sure if it only works for certain controls, but it doesn''t seem to work for any for me.
first I a variable m_button that is a CButtton to a button control and then I use this code in OnSize();
m_button.SetWindowPos(NULL,0,0,cx/3,cy/3,NULL);
the program always freezes on the line:
ASSERT(::IsWindow(m_hwnd))
inside the SetWindowPos function, and the m_hwnd variable is always 0x000000 .
any help would be greatly appreciated
Dave