Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi guys, im trying to make a program that when you press a button it shows the start menu in a certain screen position.

 

I know I can do something like this:

SendMessage(StartMenuHandle, WM_SYSCOMMAND, SC_TASKLIST, 0)

 

But i cant specify where for the start menu to show. So my next thought was to use the SetWindowPos API like this:

 

SetWindowPos(StartMenuHandle, HWND_TOP, 0, 0, r.Width, r.Height, SWP_SHOWWINDOW) 'r is the startmenu rectangle from using GetWindowRect

 

Now that works and i can put it where i want, except unless i use

 

SendMessage(StartMenuHandle, WM_SYSCOMMAND, SC_TASKLIST, 0)

 

first then the mouseover effects dont seem to show, and if i do use the above code first then it causes the startmenu to flash in the original location first. So my question is, does anyone have any idea of how i could solve the mouseover effects not working or even better have a proper method for showing the startmenu in a specified place. :)

 

 

 

 

Thanks, Dan

 

 

EDIT: maybe this would be better in the interop section?

Posted

Dashboard or the thing im making? anyway neither are.. Dashboard is basicly a shell extention and the thing im making is basicly for the people who want it.. (not myself but alot of others)

 

 

 

Dan

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...