Eric de Groot
April 14th, 1999, 11:40 AM
Hello-
I'm trying to setup an MFC application that has a single dialog that is an AppBar. I'm using all the helper functions from the msdn cds that come with Visual Studio 6.0. I get the dialog to show up, the appbar registers, everything works, the callback gets called and all. The dialog gets stretched to the width of my screen, but the **** thing won't go to the top. It sits exactly in the middle horizontally. I try and move it with SetWindowPos and MoveWindow, to 0,0 on the screen, with the correct width and height, it sets the width and height, but insists 0,0 is at the middle of the screen.
I created the project with the appwizard, added the functions to the dialog class, and added the calls to register and querypos at WM_CREATE in the dialog class, and the unregister in WM_DESTROY.
Can anyone shed any light on what I'm missing or doing wrong?
-Thanks Alot, Eric de Groot
mailto:ericdeg@ptdprolog.net
I'm trying to setup an MFC application that has a single dialog that is an AppBar. I'm using all the helper functions from the msdn cds that come with Visual Studio 6.0. I get the dialog to show up, the appbar registers, everything works, the callback gets called and all. The dialog gets stretched to the width of my screen, but the **** thing won't go to the top. It sits exactly in the middle horizontally. I try and move it with SetWindowPos and MoveWindow, to 0,0 on the screen, with the correct width and height, it sets the width and height, but insists 0,0 is at the middle of the screen.
I created the project with the appwizard, added the functions to the dialog class, and added the calls to register and querypos at WM_CREATE in the dialog class, and the unregister in WM_DESTROY.
Can anyone shed any light on what I'm missing or doing wrong?
-Thanks Alot, Eric de Groot
mailto:ericdeg@ptdprolog.net