|
From: Noorez K. <lor...@ho...> - 2006-01-03 19:37:12
|
umm...that didn't work....hears my WinProc
LRESULT CALLBACK WindowProcedureClient (HWND hwnd, UINT message, WPARAM
wParam, LPARAM lParam)
{
HWND inMessage, outMessage;
HWND send;
switch( message )
{
case WM_CREATE:
inMessage = CreateWindowEx (
0, /* Extended possibilites for variation */
"EDIT", /* Classname */
"", /* Title Text */
WS_CHILD | WS_VISIBLE | WS_VSCROLL | /*WS_HSCROLL |*/
ES_MULTILINE |
ES_AUTOVSCROLL /*| ES_AUTOHSCROLL*/,
43, /* Windows decides the position */
0, /* where the window ends up on the screen */
444, /* The programs width */
250, /* and height in pixels */
hwnd, /* The window is a child-window to desktop */
(HMENU)3001, /* No menu */
gThisInstance, /* Program Instance handler */
NULL /* No Window Creation data */
);
outMessage = CreateWindowEx(
0,
"EDIT",
"",
WS_CHILD | WS_VISIBLE | WS_HSCROLL | ES_AUTOHSCROLL |
WS_VSCROLL | ES_AUTOVSCROLL | ES_MULTILINE,
43,
255,
444,
60,
hwnd,
(HMENU)4001,
gThisInstance,
NULL
);
send = CreateWindowEx(
0,
"BUTTON",
"SEND",
WS_CHILD | WS_VISIBLE,
70,
345,
150,
38,
hwnd,
(HMENU)5001,
gThisInstance,
NULL
);
break;
case WM_SIZE:
break;
case WM_DESTROY:
break;
default:
return DefWindowProc( hwnd, message, wParam, lParam );
}
}
>From: Per Westermark <pw...@ia...>
>To: Noorez Kassam <lor...@ho...>
>CC: dev...@li...
>Subject: Re: [Dev-C++] HWND resize
>Date: Tue, 3 Jan 2006 11:56:50 +0100 (CET)
>
>All windows are HWND windows - it might just be wrapped inside a nice
>class.
>
>Hook the WM_SIZE message and ignore it.
>
>/Per W
>
>On Mon, 2 Jan 2006, Noorez Kassam wrote:
>
> > Is there a way to prevent an HWND window from being resized?
> >
> > _________________________________________________________________
> > Take charge with a pop-up guard built on patented Microsoft® SmartScreen
> > Technology
> >
>http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
> > Start enjoying all the benefits of MSN® Premium right now and get the
> > first two months FREE*.
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do you grep through log
>files
> > for problems? Stop! Download the new AJAX search engine that makes
> > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> > _______________________________________________
> > Dev-cpp-users mailing list
> > Dev...@li...
> > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
> >
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Splunk Inc. Do you grep through log
>files
>for problems? Stop! Download the new AJAX search engine that makes
>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
>http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
Designer Mail isn't just fun to send, it's fun to receive. Use special
stationery, fonts and colors.
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
Start enjoying all the benefits of MSN® Premium right now and get the
first two months FREE*.
|