Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Allowing EDITBOX Size to Follow Window Size

Ed HallEd Hall Member Posts: 395
I'm calling a sized child window using the following in my .rc file. I have it set to a particular size in the code, but would like to allow maximizing, so I added the WS_MAXIMIZEBOX element the window. But, this doesn't allow the EDITTEXT (IDC_RESULT) box to enlarge with the window. Is there a way to simply make IDC_RESULT follow the window size?

[code]
ID_PAGES_RESULTS DIALOG DISCARDABLE 0, 0, 500, 400
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_MAXIMIZEBOX
CAPTION "Match Tracker Results"
FONT 9, "Lucida Console"
BEGIN

PUSHBUTTON "Close",ID_FILE_EXIT,50,380,40,14
PUSHBUTTON "Save As:",ID_FILE_SAVE,110,380,38,14
EDITTEXT IDC_TITLE,150,380,100,14, ES_AUTOHSCROLL
EDITTEXT IDC_RESULT,0,0,490,360,ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_WANTRETURN | ES_MULTILINE | WS_VSCROLL | WS_HSCROLL

END
[/code]

Thanks.

Take Care,
Ed
Sign In or Register to comment.