|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Sergio Del Valle
|
Jun 28, 2004 - 2:10 PM
|
Hi everyone I want to avoid a dialog derived from CExtResizablePropertySheet from being resized, I have tried to modify the dialog style, removing the WS_THICKFRAME style, but it seems the framework doesn’t allow changing this properties. How can I make a CExtResizablePropertySheet non resizable? When I create a resource for a normal dialog, and derive the class from CExtResizableDialog the library keeps the styles selected for it, but it’s not the same for the CExtResizablePropertySheet. Thanks in advance
|
|
Technical Support
|
Jun 29, 2004 - 3:15 AM
|
Dear Sergio,
You should use your own class derived from CExtResizablePropertySheet and override its WindowProc virtual method like this: virtual LRESULT WindowProc(
UINT message,
WPARAM wParam,
LPARAM lParam
)
{
if( message == WM_NCHITTEST )
{
LRESULT lResult =
CExtWSBase::WindowProc(message,wParam,lParam);
if( lResult == HTBORDER
|| lResult == HTBOTTOM
|| lResult == HTBOTTOMLEFT
|| lResult == HTBOTTOMRIGHT
|| lResult == HTLEFT
|| lResult == HTRIGHT
|| lResult == HTTOP
|| lResult == HTTOPLEFT
|| lResult == HTTOPRIGHT
)
return HTNOWHERE;
return lResult;
}
return CExtWSBase::WindowProc(message,wParam,lParam);
}
|
|