Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How can I show the X / Y coordinates when the window's size changes:
C++
Rect rect;
GetWindowRect(&rect);
int x = rect.width();
int y = rect.height();
Posted
Updated 18-Jul-15 23:51pm
v2
Comments
Richard MacCutchan 19-Jul-15 3:03am    
What?
Member 11417637 19-Jul-15 3:15am    
I want if window can resize the the window x and y values will be display in same window

just like in dialog box we resize the bottom side the x and y co-ordinate will be vary we want that code actual
Richard MacCutchan 19-Jul-15 3:23am    
Your question is still not clear, but I think you most likely need to respond to the WM_SIZE message in your message handler. See https://msdn.microsoft.com/en-us/library/windows/desktop/ms632646(v=vs.85).aspx.
Member 11417637 19-Jul-15 4:39am    
yes, could pls explain wm_SIZE Implementation pls pls..................... on dialog box
Richard MacCutchan 19-Jul-15 7:42am    
I gave you the link to WM_SIZE in my previous message. However, you should understand that dialogs do not normally allow resizing.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900