Hi
I'm trying to move my controls around (ie. buttons, textboxes, etc) whenever the user resizes the window. Sounds simple enough, but it's just not working...
What I'm doing is getting the button window pointer and trying to change its rect through MoveWindow(...) but it crashes _every_ time and I have no idea why.
CWnd* button = GetDlgItem(ID_OK);
button ->MoveWindow(0, 0, 100, 100, false);
Any ideas? Thanks!
I'm trying to move my controls around (ie. buttons, textboxes, etc) whenever the user resizes the window. Sounds simple enough, but it's just not working...
What I'm doing is getting the button window pointer and trying to change its rect through MoveWindow(...) but it crashes _every_ time and I have no idea why.
CWnd* button = GetDlgItem(ID_OK);
button ->MoveWindow(0, 0, 100, 100, false);
Any ideas? Thanks!