int QuickLaunchBar::Notify(int id, NMHDR* pnmh)
{
switch(pnmh->code) {
- case TTN_GETDISPINFO: {
+ case TTN_GETDISPINFO: { //TODO: TTN_GETDISPINFO is only received, if desktop bar window has the focus?!
NMTTDISPINFO* ttdi = (NMTTDISPINFO*) pnmh;
int id = ttdi->hdr.idFrom;
HWND StartMenu::Create(int x, int y, const StartMenuFolders& folders, HWND hwndParent, CREATORFUNC creator)
{
+ //TODO: check, if coordinates x/y are visible on the screen
return Window::Create(creator, &folders, 0, s_wcStartMenu, NULL,
WS_POPUP|WS_THICKFRAME|WS_CLIPCHILDREN|WS_VISIBLE, x, y, STARTMENU_WIDTH_MIN, 4/*start height*/, hwndParent);
}
case WM_SETFOCUS:
break; // don't post WM_CANCELMODE in Window::WndProc when focusing the startmenu
- case PM_STARTENTRY_FOCUSED: {
+ case PM_STARTENTRY_FOCUSED: { //TODO: use TrackMouseEvent() and WM_MOUSEHOVER to wait a bit before opening submenus
BOOL hasSubmenu = wparam;
HWND hctrl = (HWND)lparam;
CreateSubmenu(id, new_folders);
} else {
- entry->launch_entry(_hwnd); //TODO: launch in the background
+ entry->launch_entry(_hwnd); //TODO: launch in the background; specify correct HWND for error message box titles
// close start menus after launching the selected entry
CloseStartMenu(id);
StartMenu(HWND hwnd, const StartMenuFolders& info);
~StartMenu();
- static HWND Create(int x, int y, HWND hwndParent=0);
+// static HWND Create(int x, int y, HWND hwndParent=0);
static HWND Create(int x, int y, const StartMenuFolders&, HWND hwndParent=0, CREATORFUNC creator=s_def_creator);
static CREATORFUNC s_def_creator;
void NotifyArea::Paint()
{
- PaintCanvas canvas(_hwnd);
+ BufferedPaintCanvas canvas(_hwnd);
// first fill with the background color
FillRect(canvas, &canvas.rcPaint, GetSysColorBrush(COLOR_BTNFACE));
VPATH += ../utility
VPATH += ../shell
-VPATH += ../taskbar
+VPATH += plugins
WINE_MODE = yes
# PROP Default_Filter ""
# Begin Source File
-SOURCE=..\taskbar\ex_bar.c
+SOURCE=.\plugins\ex_bar.c
# End Source File
# Begin Source File
-SOURCE=..\taskbar\ex_bar.h
+SOURCE=.\plugins\ex_bar.h
# End Source File
# Begin Source File
-SOURCE=..\taskbar\ex_clock.c
+SOURCE=.\plugins\ex_clock.c
# End Source File
# Begin Source File
-SOURCE=..\taskbar\ex_menu.c
+SOURCE=.\plugins\ex_menu.c
# End Source File
# Begin Source File
-SOURCE=..\taskbar\ex_shutdwn.c
+SOURCE=.\plugins\ex_shutdwn.c
# End Source File
# End Group
# Begin Source File