CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 13 of 13
  1. #1
    Join Date
    May 1999
    Posts
    69

    Undocumented WIn32 API

    I'm looking out for something that requires using undocumented win32 API calls... can anyone please give me some pointers? I did find exactly what I was looking for at one site (It was a sample that made something like the windows start menu, and could browse a folder using cascading menus like the programs or favourites menu), but the file was missing from the server. The author left no email address, and I have no way to contact him. I know that "the truth is out there", but I don't know where to look. I've been searching for undocumented win32 api with no luck. So please, if anyone can help me out or recommend any site, it'll be great!


  2. #2
    Join Date
    May 1999
    Posts
    123

    Re: Undocumented WIn32 API

    You don't need anything undocumented to create cascading menus. If you're trying to do something else, you're probably better off telling us what you want to do instead of just "tell me about undocumented Win32"...


    The universe is a figment of its own imagination.

  3. #3
    Join Date
    May 1999
    Posts
    69

    Re: Undocumented WIn32 API

    Hey, cool it, man!
    I know how to create cascading popup menus. What I'm looking for is to create something like the windows start menu & programs menu. I almost found this code at a site (It was supposed to be in VB, but what the heck, it's Win32) , but the file was missing from the server! The author (Andrew M. Barfield - I'm still trying to trace him) mentioned the use of undocumented win32 api to do the job.
    We're trying to build something similar to the programs menu using the standard available calls, but we're having problems.
    That's why I'm looking for them.
    I hope you know understand my problem.

    Hardeep.


  4. #4
    Join Date
    May 1999
    Posts
    123

    Re: Undocumented WIn32 API

    Perhaps you could tell us exactly what parts of what you want to do involve things that aren't supported by the standard API? I've looked at the start menu and offhand I can't think of much about it that looks like it'd be at all difficult to implement using normal, well documented code. I'm still just a bit uncertain whether I'm missing something obvious, or just completely misunderstanding the question, or what...


    The universe is a figment of its own imagination.

  5. #5
    Join Date
    Apr 1999
    Location
    Malaysia
    Posts
    224

    i got him..

    you wan to looking for him or his email? i can't see why you cannot get him at yahoo?
    i got it for you

    http://www.picturerobots.com/pix3/p_Explorer.htm
    Andrew M. Barfield
    Xtreme Software
    e-Mail:[email protected]



    Hello World!!!

  6. #6
    Join Date
    May 1999
    Posts
    69

    Re: Undocumented WIn32 API

    Well, Sir, to begin with, it's the quick exploration of any given directory. Directories can be explored using cascading menus, but the start menu does it suspiciously fast considering it can go to any no. of levels. It seems to create the submenus dynamically, after tracking the mouse position. Though we have MenuItemFromPoint(), how do we get the particular menu object(submenu)that is currently active?

    In addition, there's the 'info tips' that appear when the mouse is over an internet shortcut in the favourites folder.

    There's also the handling of right-click messages - this is something a menu cannot possibly give us, if we go by the documentation.

    On the same lines, the drag-and-drop between submenus in different parts of the menu.

    Finally, the vertical scrolling when the list is too long.

    All these things together suggest that the code is at a lower level than the standard CMenu functions, especially trackpopupmenu.These features have us baffled.


  7. #7
    Join Date
    Apr 1999
    Posts
    383

    Re: Undocumented WIn32 API

    > Though we have MenuItemFromPoint(), how do we get the particular menu object
    > (submenu)that is currently active?

    The ON_COMMAND_RANGE macro is designed with this in mind. Submenu items are given consecutive IDs and the framework will call the ON_COMMAND_RANGE handler with the ID of the selected submenu item.

    > In addition, there's the 'info tips' that appear when the mouse is over an
    > internet shortcut in the favourites folder.

    As I understand it, 'info-tips' are just tooltips used in other situations. Tooltips, right mouse-click and drag-n-drop support can be managed with popup menus by handling the WM_MENUSELECT message and checking what the mouse is up to, etc.

    For details about the Windows taskbar, its messages and mouse callback events, and modifying the Start menu, see the 'Windows Shell API' documentation, especially the entries for 'Application Desktop Toolbars' and the 'Taskbar'.

    Dave


  8. #8
    Join Date
    May 1999
    Posts
    69

    Re: Undocumented WIn32 API

    ON_COMMAND_RANGE only gives the ID of the menu item which is clicked... we want to know the menu item which is currently highlited (over which the mouse currently is). This will help us dynamically fill up a submenu, thereby getting good speed instead of loading the entire directory structure beforehand.

    I went thru the documentation on WM_MENUSELECT and OnMenuSelect. Again, these can be used only when the menu item is clicked or activated by some key... we want to track the left button for menu selections, but be able to capture a right-click to bring up a context menu. It doesn't seem to be able to handle this.

    And what about scrolling in popup menus?


  9. #9
    Join Date
    May 1999
    Location
    CA, USA
    Posts
    586

    Re: Undocumented WIn32 API

    Perhaps this site: http://www.geocities.com/SiliconValley/4942/ has something that will assist you.

    Rail

    Recording Engineer/Software Developer
    Rail Jon Rogut Software
    [email protected]
    http://home.earthlink.net/~railro/

  10. #10
    Join Date
    May 1999
    Posts
    69

    Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    I don't think I can thank you enough! I knew that the "Truth IS out there" and now I've found (some part of) it!


  11. #11
    Join Date
    Apr 1999
    Posts
    383

    Re: Undocumented WIn32 API

    > I went thru the documentation on WM_MENUSELECT and OnMenuSelect. Again,
    > these can be used only when the menu item is clicked or activated by some
    > key...

    The documentation can be misleading. If you actually look at the messages sent (using Spy++), you will find that WM_MENUSELECT is sent when the menu item is highlighted by the mouse passing over it, without any clicking or key pressing. This seems to be part of what you wanted.

    Unfortunately I don't know about scrolling in popup menus.

    Dave


  12. #12
    Join Date
    May 1999
    Posts
    19

    Re: Undocumented WIn32 API

    I'm looking for Undocumented WNET.. api
    calls. Have you got any idea where I can find the list?



  13. #13
    Join Date
    May 1999
    Location
    CA, USA
    Posts
    586

    Re: Undocumented WIn32 API

    I haven't seen anything specific to WNET, but here's another site which has some links that may be useful: http://www.cs.cmu.edu/afs/cs.cmu.edu...WWW/undoc.html

    Rail

    Recording Engineer/Software Developer
    Rail Jon Rogut Software
    [email protected]
    http://home.earthlink.net/~railro/

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