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 |
|
Jin-Myung Won
|
Apr 17, 2008 - 2:47 PM
|
Hello,
I just downloaded "profuis282_freeware.zip" and have been playing with "SDIDOCVIEW" sample project with VC++ 6.0 and WinXP. With Classwizard, I created a member function to process mouse double clicking message in "SDIDOCVIEWView.cpp", but it is never invoked (Single clicking works well). How can I fix this?
Thanks,
|
|
Technical Support
|
Apr 18, 2008 - 1:23 PM
|
You can do that by modifying the following method: BOOL CSDIDOCVIEWView::PreCreateWindow(CREATESTRUCT& cs)
{
if( ! CView::PreCreateWindow( cs ) )
return FALSE;
cs.style |= WS_CLIPSIBLINGS|WS_CLIPCHILDREN;
cs.dwExStyle &= ~(WS_EX_CLIENTEDGE|WS_EX_STATICEDGE|WS_EX_DLGMODALFRAME);
//cs.lpszClass = ::AfxRegisterWndClass( 0, ::LoadCursor( NULL, IDC_ARROW ) ); // THIS LINE WAS REMOVED
cs.lpszClass = ::AfxRegisterWndClass( CS_DBLCLKS, ::LoadCursor( NULL, IDC_ARROW ) ); // THIS LINE WAS ADDED
return TRUE;
}
|
|