Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to get the (0, 0)th location
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to get the (0, 0)th location

 Post Reply Post Reply
Author
Message
jigarmehtamscit View Drop Down
Groupie
Groupie
Avatar

Joined: 29 October 2005
Location: India
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote jigarmehtamscit Quote  Post ReplyReply Direct Link To This Post Topic: How to get the (0, 0)th location
    Posted: 27 November 2005 at 1:06pm
Hi,

I am using menubar and toolbar, statusbar in my dialog, Now, I want to put an activeX control which should have its window from (0, 0)th location of the dialog till the (maxX, maxY) position in the dialog.

Now, If I simply use this code,

pMyCustomCtl->SetWindowPos(NULL, xLeftTop, yLeftTop, 250, 250, SWP_NOSIZE);

Now, what this line does is put my control on the first pixel of my dialog.. which overrides my menu and toolbar control.. And if going till the end of hte dialog, it goes above the status bar too.. So, how can I get the co-ordinate (0, 0) after menubar and toolbar gets completed.. ?? I may have more than one row for toolbar.. so, i can not add constant to get hte location.. I hope you understand my question..
Regards,
Jigar Mehta
Back to Top
jigarmehtamscit View Drop Down
Groupie
Groupie
Avatar

Joined: 29 October 2005
Location: India
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote jigarmehtamscit Quote  Post ReplyReply Direct Link To This Post Posted: 06 December 2005 at 2:01pm
Please tell me how can I get the pixel location from where free (un-occupied by my menubar of toolbar) portion of dialog begins.. ??
Regards,
Jigar Mehta
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 06 December 2005 at 10:45pm

Hello,

in MSDN see RepositionBars + where nFlag = CWnd::reposQuery

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
jigarmehtamscit View Drop Down
Groupie
Groupie
Avatar

Joined: 29 October 2005
Location: India
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote jigarmehtamscit Quote  Post ReplyReply Direct Link To This Post Posted: 07 December 2005 at 10:32am
Thx.. I have found it and it works..
Regards,
Jigar Mehta
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.