Click here to Skip to main content
15,902,810 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Creating child windows in PreSubclassWindow Pin
Garth Watkins15-Feb-05 9:26
Garth Watkins15-Feb-05 9:26 
GeneralRe: Creating child windows in PreSubclassWindow Pin
ThatsAlok16-Feb-05 19:07
ThatsAlok16-Feb-05 19:07 
GeneralMove a child window to an absolute position Pin
doctorpi14-Feb-05 22:32
doctorpi14-Feb-05 22:32 
GeneralRe: Move a child window to an absolute position Pin
Rajesh_Parameswaran15-Feb-05 0:14
Rajesh_Parameswaran15-Feb-05 0:14 
GeneralRe: Move a child window to an absolute position Pin
doctorpi15-Feb-05 0:20
doctorpi15-Feb-05 0:20 
GeneralRe: Move a child window to an absolute position Pin
User 665815-Feb-05 0:44
User 665815-Feb-05 0:44 
GeneralRe: Move a child window to an absolute position Pin
doctorpi15-Feb-05 0:50
doctorpi15-Feb-05 0:50 
GeneralRe: Move a child window to an absolute position Pin
Antony M Kancidrowski15-Feb-05 2:36
Antony M Kancidrowski15-Feb-05 2:36 
If you are using CWnd::SetWindowPos() the first parameter can be set to NULL.

Using the API ::SetWindowPos() the first parameter is the handle to the window to move.

e.g.
SetWindowPos(NULL, nLeft, nTop, 0, 0, SWP_NOSIZE | SWP_NOZORDER);
<p></p>
where
nLeft and nTop - specify the top left corner of the window
or
::SetWindowPos(hWnd, NULL, nLeft, nTop, 0, 0, SWP_NOSIZE | SWP_NOZORDER);
<p></p>
where
hWnd - is the handle to the dialog window
nLeft and nTop - specify the top left corner of the window



NOTE: We do not need to specify the width and height if we have SWP_NOSIZE.

Ant.

I'm hard, yet soft.
I'm coloured, yet clear.
I'm fruity and sweet.
I'm jelly, what am I? Muse on it further, I shall return!
- David Walliams (Little Britain)

GeneralRe: Move a child window to an absolute position Pin
doctorpi15-Feb-05 2:39
doctorpi15-Feb-05 2:39 
GeneralRe: Move a child window to an absolute position Pin
doctorpi15-Feb-05 2:52
doctorpi15-Feb-05 2:52 
GeneralRe: Move a child window to an absolute position Pin
Antony M Kancidrowski15-Feb-05 13:46
Antony M Kancidrowski15-Feb-05 13:46 
GeneralRe: Move a child window to an absolute position Pin
doctorpi15-Feb-05 20:50
doctorpi15-Feb-05 20:50 
GeneralRe: Move a child window to an absolute position Pin
doctorpi15-Feb-05 21:04
doctorpi15-Feb-05 21:04 
Generalbeginner to the Visual C++ Pin
Munisamy14-Feb-05 21:59
Munisamy14-Feb-05 21:59 
GeneralRe: beginner to the Visual C++ Pin
rocky_pulley15-Feb-05 1:19
rocky_pulley15-Feb-05 1:19 
Generalhelp needed in shellexecute Pin
URagavSouth14-Feb-05 21:43
URagavSouth14-Feb-05 21:43 
GeneralRe: help needed in shellexecute Pin
22491714-Feb-05 22:32
22491714-Feb-05 22:32 
GeneralRe: help needed in shellexecute Pin
URagavSouth14-Feb-05 22:36
URagavSouth14-Feb-05 22:36 
GeneralRe: help needed in shellexecute Pin
User 665815-Feb-05 0:42
User 665815-Feb-05 0:42 
GeneralRe: help needed in shellexecute Pin
David Crow15-Feb-05 4:19
David Crow15-Feb-05 4:19 
GeneralDrawText() Pin
sureshpillai14-Feb-05 20:09
sureshpillai14-Feb-05 20:09 
GeneralRe: DrawText() Pin
Frank K14-Feb-05 23:53
Frank K14-Feb-05 23:53 
GeneralRe: DrawText() Pin
sureshpillai15-Feb-05 15:46
sureshpillai15-Feb-05 15:46 
QuestionVERY INTETRESTING...but is it POSSIBLE? Pin
kedar.dave14-Feb-05 19:16
kedar.dave14-Feb-05 19:16 
AnswerRe: VERY INTETRESTING...but is it POSSIBLE? Pin
ThatsAlok14-Feb-05 22:29
ThatsAlok14-Feb-05 22:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.