- I create a window with CreateWindow
- Posted by Tom on November 5th, 2003
Hi all,
== Summary ==
I create a window with CreateWindow, supplying a certain position and size.
The WM_MOVE and WM_SIZE arrive with a slightly smaller position and size.
Why? How do I fix it?
== Details ==
- Custom window class, with style (CS_HREDRAW | CS_VREDRAW) and no menu
- CreateWindow called with style (WS_CHILD | WS_VISIBLE), the parent window
handle, and this position info:
--- x=865, y=407, width=19, height=19
- WM_MOVE arrives with x=867, y=409
- WM_SIZE arrives with width=14, height=14
- The non-client messages are passed directly through DefWindowProc, which
is not attempting to change the dimensions as far as I can tell.
- I have not asked for a border anywhere.
- The shrinkage seems to be a constant 5 pixels regardless of the size of
the window.
Help please!
--Tom
- Posted by Jussi Jumppanen on November 7th, 2003
Tom wrote:
My guess is the parent window has been defined to have a client
window edge, and so the size of the child is adjusted to make
room for this 3d edge.
Just a guess
Jussi Jumppanen
Author of: Zeus for Windows (All new version 3.90 out now)
"The C/C++, Cobol, Java, HTML, Python, PHP, Perl programmer's editor"
Home Page: http://www.zeusedit.com
- Window$ Freeware to create a RAR? (Software & Applications) by Binyamin Dissen
- What numbering of handles does CreateWindow() use? (Development Resources) by 123
- CreateWindow to create another window (Development Resources) by Enry
- Trying to create a window that is maximized (Development Resources) by TheTempest
- Create non-visible window? (Development Resources) by Planaria

