Make the configuration dialog appear near the mouse pointer if

launched from the shell notification icon as requested by Roku's
Anthony Wood.
This commit is contained in:
Mike Crowe
2006-05-30 16:47:12 +00:00
parent aea1b16ddd
commit 94b4883cd2
5 changed files with 69 additions and 10 deletions

View File

@@ -32,16 +32,23 @@ class CMainDlg : public CPropertySheetImpl<CMainDlg>
CAdvancedPage m_pageAdvanced;
CLogPage m_pageLog;
CAboutPage m_pageAbout;
bool m_window_move_required;
BEGIN_MSG_MAP(CMainDlg)
MESSAGE_HANDLER(WM_COMMAND, OnCommand)
MSG_WM_MOVE(OnMove)
CHAIN_MSG_MAP(base)
END_MSG_MAP()
LRESULT OnCommand(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled);
void OnMove(CPoint);
void PositionWindow();
public:
CMainDlg();
// Pass true if you want the window to be moved to near the mouse pointer.
// This is usually only the case if the window is displayed as a result of
// clicking on the shell notification icon.
CMainDlg(bool move_window);
};
#endif // MAINDLG_H