Fw: Assigning resource id's
- Posted by Derek Parnell <ddparnell at bigpond.com> Apr 26, 2002
- 355 views
Chris Bensler wrote: >Maybe I'm using the wrong terminology. > >Here is the relevant code: [snipped code example] >When MoveWindow(mleOut, etc) is called for the first time, mleOut >hasn't been created yet, and instead, the desktop 'Start' button >is resized. > >I can get around it by using a different value instead of 200 for >mleOut, or by skipping the first call to onSize_MAIN(), but it >seems like I'm just doing something wrong. Hi Chris, I can't see where you have used '200' in the code example you gave. I thought that CreateWindowEx() would have returned a hWnd and not a "resource" number. If you execute your resize code to try and resize a non-existant Mle then I should expect you get what you deserve. The best strategy would be to put code in the resize routine to avaid resizing non-existant controls. --------- Derek.