|
|
|
|
#1 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Get X & Y of control C++
Is it possible to get the X and Y coordinates of e.g. a button from the left and top of a window (rather than the screen) in C++?
Neither GetWindowRect nor GetClientRect seem to get it. Edit: This is for a NSIS plugin I'm writing for some guy. -Stu |
|
|
|
|
|
#2 |
|
Major Dude
|
Use GetWindowRect to get the child window rectangle, then MapWindowPoints to make it relative to the parent window.
|
|
|
|
|
|
#3 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
or GetWindowRect and ScreenToClient
IntOp $PostCount $PostCount + 1 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|