Posted: Sat Dec 26, 2009 1:34 am Post subject: C++ - Setting my window's position on center screen?
How would i do this when the form is open?
all i know is CW_USEDEFAULT style
is there something else or should i manually change it's position when it's loaded?
i think i'd be okay from here thanks
but one more problem if i may
the thing is that i have my entry point that creates the main window but b4 that window is being initialized
i create a child window for choosing settings and right after i hit ok that window close itself and the main window is being loaded
but when the main window is being loaded it doesn't have any focus, and all other windows / application are hiding him
so i used SetForegroundwindow to set it the first in z order
and when i wanna use SetDlgItemText to set the text of some textbox
it's not working :\
any idea ?
lol nvm i figured it out :>
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum