dannyres Posted November 10, 2003 Posted November 10, 2003 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? Quote
*Gurus* Derek Stone Posted November 10, 2003 *Gurus* Posted November 10, 2003 Why in all God's creation would you want to do this? Quote Posting Guidelines
dannyres Posted November 11, 2003 Author Posted November 11, 2003 basicly because im trying to make a taskbar component for a program called Codename: Dashboard... :) Dan Quote
*Gurus* Derek Stone Posted November 11, 2003 *Gurus* Posted November 11, 2003 Is this a shell replacement? Quote Posting Guidelines
dannyres Posted November 11, 2003 Author Posted November 11, 2003 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 Quote
Recommended Posts