Want to know whether the mouse is in left pane or right pane

Win32 Programming

    Next

  • 1. why it(.net 2003)shows me cannot find SHGetFolderLocation function
    i seeked in the MSDN.it shows me SHGetFolderLocation is in "shell32.dll v5.00 or later" because of my pc used to install vc6 so i doubt it may be the reason that the path(in .net 2003) is not correct i correct the "include" and "lib" path in .net 2003,but it still do not work how can i do???
  • 2. Richedit Background Image
    Hello, I'm trying to set a background image for an already created richedit I'm modifying. 'bit' is a string pointing to the bitmaps filename. 'db' is the richedit's HWND HBITMAP hBitmap = LoadBitmap(OurSelf, (LPCTSTR)bit); HBRUSH hBrush = CreatePatternBrush(hBitmap); SetClassLong(db, GCL_HBRBACKGROUND, (LONG)hBrush); is what I'm using, and its not working. any ideas? Thanks
  • 3. opening menus
    I would like to be able to open a menu from code, hopefully someone out there knows how to do this. I have tried using sendinput to send an ALT key up/down then a down arrow key up/down.. The ALT seems to take, but the down arrow does nothing, infact by sending the ALT it seems to have disabled the normal keys from acting on the menu until I hit alt 2 more manually.. Normally alt followed by down would open the first popup menu in the menu bar. I have also tried to get the subMenu I want from the main menubar item I want and TrackPopupWindow in the same place the normal popup would go but for the user to start moveing to menu items manually they have to click on the menu item they want twice, once to kill the popup then once to opne the menu, normally the popup menu would open automatically once an item with a subMenu was hovered over. Ideally what I would like is to know how to trigger a popup submenu to open as if the mouse had clicked on it. Jason
  • 4. lListview horizontal scroll notification?
    I'm using a listview control (Win32 API) in the report view, with a very large number of columns (1000). This has caused the header to be too wide, so horizontal scrolling past column 300 or so causes the header to vanish. In order to fix this, I want to change the display as the user scrolls horizontally, but I can't find out how to receive a notification on horizontal scrolling, column becoming visible, or anything else that would give me a chance to change the display so the correct column headers are visible. XXXX@XXXXX.COM (remove caps to get e-mail)

Want to know whether the mouse is in left pane or right pane

Postby Pravin » Tue, 06 Jan 2004 18:10:11 GMT

User can drag an object from my namespace and drop it in 
either left or right pane. I just want to know whether the 
drop occured in left pane or in right pane.

Thanx 

Re: Want to know whether the mouse is in left pane or right pane

Postby Gary Chanson » Wed, 07 Jan 2004 09:13:58 GMT






    Use GetClassName on the control handle and see if it's WC_TREEVIEW or
WC_LISTVIEW.


-- 

-GJC [MS Windows SDK MVP]
-Software Consultant (Embedded systems and Real Time Controls)
 XXXX@XXXXX.COM 

-Abolish public schools



Re: Want to know whether the mouse is in left pane or right pane

Postby Raymond Chen » Fri, 09 Jan 2004 13:14:52 GMT

Um that assumes that the views will always be a treeview and a listview -
that is not guaranteed to be true in the future.

Pravin, why do you need to change your behavior if the item is dropped in a
different place?  That's highly unusual. (And what if the user drops onto
the desktop or into a Word document? That's neigther left nor right.)











Re: Want to know whether the mouse is in left pane or right pane

Postby Gary Chanson » Fri, 09 Jan 2004 14:01:01 GMT






    That's good to know.

-- 

-GJC [MS Windows SDK MVP]
-Software Consultant (Embedded systems and Real Time Controls)
 XXXX@XXXXX.COM 

-Abolish public schools




Return to Win32 Programming

 

Who is online

Users browsing this forum: No registered users and 52 guest