Print Page | Close Window

How to get the (0, 0)th location

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3290
Printed Date: 11 January 2026 at 6:35pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to get the (0, 0)th location
Posted By: jigarmehtamscit
Subject: How to get the (0, 0)th location
Date 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



Replies:
Posted By: jigarmehtamscit
Date 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


Posted By: Oleg
Date Posted: 06 December 2005 at 10:45pm

Hello,

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



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: jigarmehtamscit
Date Posted: 07 December 2005 at 10:32am
Thx.. I have found it and it works..

-------------
Regards,
Jigar Mehta



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net