News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

StatusWindow and Horizontal Scrollbar

Started by vega, December 04, 2007, 01:25:37 AM

Previous topic - Next topic

vega

Dear All,
I don't know the method that StatusWindow does not overwritten by horizontal scrollbar of RichEdit control.
Please, teach me with simple example.

MichaelW

The MASM32 example masm32\examples\exampl05\riched uses a sizeable window with a rich edit control, a menu, a tool bar, and a status bar, and they all size correctly with no overlap.
eschew obfuscation

Tedd

You need to get the height of the statusbar (use GetWindowRect, with the hwnd of the statusbar) and then subtract that from the height of the richedit control - whenever you resize (in wm_size)
No snowflake in an avalanche feels responsible.

vega

 Thank you, Michael and Tedd.
and very sorry for my so lately response.
I did solved my problem by your kindly advises.
Thank you, so much..!  :bg