Hello :)

I am creating a notepad clone and it is going pretty good.. I have one simple question tho in two parts...

1.1 : I want to be able to resize the edit control along with the main window, I tried catching a CS_SIZE message from WM_SYSCOMMAND but my system almost froze... Is there another message that I can use?

1.2 : I have seen in such programming environments an option for the edit control that makes it fill out the form by itself... Is that just in those programming environments, or is it native to windows?

With hope of quick answer... Thanks.
Posted on 2006-06-21 17:36:23 by talmir
1. WM_SIZE
2. It's not an edit - it's a combobox with editable contents.
Posted on 2006-06-21 18:15:14 by ti_mo_n
Hi,

Catch the WM_SIZE message of the main window. At that point, the low word of the lParam parameter is the width of the client area and the high word of lParam is the height. Then resize the edit control according to these values.

Ramon
Posted on 2006-06-22 02:40:46 by rsala