Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get a Window size without MFC classes ???

Status
Not open for further replies.

GOOOD

Programmer
Nov 9, 2001
4
DK
Hi,

I´m was hoping that some of you programmere would help me whit this problem. I have made a normal "SDK Platform" whit just one button. Now here comes the problem, I want to let the button move whit, when I resizes the window!!!(No MFC Classes only "SDK PLATFROM" (WIN32)).

GOOOD !!!
 
From MSDN:

Platform SDK: Windows User Interface

GetWindowRect

The GetWindowRect function retrieves the dimensions of the bounding rectangle of the specified window. The dimensions are given in screen coordinates that are relative to the upper-left corner of the screen.

BOOL GetWindowRect(
HWND hWnd, // handle to window
LPRECT lpRect // window coordinates
);

HTH, s-)

Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top