![]() |
How to get the (0, 0)th location |
Post Reply
|
| Author | |
jigarmehtamscit
Groupie
Joined: 29 October 2005 Location: India Status: Offline Points: 64 |
Post Options
Thanks(0)
Quote Reply
Topic: How to get the (0, 0)th locationPosted: 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 |
|
![]() |
|
jigarmehtamscit
Groupie
Joined: 29 October 2005 Location: India Status: Offline Points: 64 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 December 2005 at 10:45pm |
|
Hello, in MSDN see RepositionBars + where nFlag = CWnd::reposQuery |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
jigarmehtamscit
Groupie
Joined: 29 October 2005 Location: India Status: Offline Points: 64 |
Post Options
Thanks(0)
Quote Reply
Posted: 07 December 2005 at 10:32am |
|
Thx.. I have found it and it works..
|
|
|
Regards,
Jigar Mehta |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |