CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    Sep 2003
    Posts
    18

    Mouse double click not working for MDI view scrollbar

    I have an old MDI application created using SDK method.
    Its main view is having scrollbar.

    On double clicking on the vertical/horizontal scrollbar, I am able to receive only one click. (Second click is missing. )
    That is the vertical scrollbar is getting moved only once. I am not receiving the second mouse click . (ie OnVScrollbar() function is getting called only once.).

    And in the MDIWindowProc() function I am handling WM_VSCROLL,WM_LBUTTONDOWN, WM_LBUTTONDBLCLK functions.

    Can anyone you please tell me which other function should I subcribe for moving vertical scroll bar twice during mouse double click.


    Code snippet used for creating the view is given below

    Code:
    // Register the MDI child class
    	wc.style	= CS_DBLCLKS | CS_OWNDC;
    	wc.lpfnWndProc	= MDIWndProc;
    	wc.hInstance	= _hInst;
    	wc.cbClsExtra	= 0;
    	wc.cbWndExtra	= MDIWNDEXTRA;
    	wc.hbrBackground= (HBRUSH)(COLOR_WINDOW + 1);
    //	wc.hbrBackground= COLOR_APPWORKSPACE + 1;
    	wc.hIcon	= LoadIcon(_hLib, ID(IDI_ICON1));;
    	wc.hCursor	= NULL;
    	wc.lpszMenuName	= NULL;
    	strcpy(szClass, _szPropertyName);
    	strcat(szClass, "MDI");
    	wc.lpszClassName= szClass;
    	if (!RegisterClass(&wc))
    		return FALSE;
    Last edited by ovidiucucu; May 27th, 2006 at 08:06 AM. Reason: [CODE] tags added

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured