View the DQSD CVS repository here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/
Update of /cvsroot/dqsd/dqsd/src/DQSDSearchWiz
In directory usw-pr-cvs1:/tmp/cvs-serv10867/src/DQSDSearchWiz
Modified Files:
AboutDlg.h
Log Message:
in work
Index: AboutDlg.h
===================================================================
RCS file: /cvsroot/dqsd/dqsd/src/DQSDSearchWiz/AboutDlg.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** AboutDlg.h 19 Sep 2002 21:57:10 -0000 1.7
--- AboutDlg.h 20 Sep 2002 04:43:48 -0000 1.8
***************
*** 11,15 ****
// CAboutDlg
class CAboutDlg :
! public CAxDialogImpl<CAboutDlg>
{
public:
--- 11,15 ----
// CAboutDlg
class CAboutDlg :
! public CDialogImpl<CAboutDlg>
{
public:
***************
*** 28,31 ****
--- 28,32 ----
COMMAND_ID_HANDLER(IDOK, OnOK)
COMMAND_ID_HANDLER(IDCANCEL, OnCancel)
+ MESSAGE_RANGE_HANDLER(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseMessage)
END_MSG_MAP()
// Handler prototypes:
***************
*** 74,77 ****
--- 75,86 ----
m_hlAboutURL.SubclassWindow( GetDlgItem( IDC_Caption ) );
+ // create a tool tip
+ m_tip.Create(m_hWnd);
+ ATLASSERT(m_tip.IsWindow());
+ m_tip.Activate(TRUE);
+
+ m_tip.AddTool( GetDlgItem( IDOK ), _T("this is the OK button") );
+ m_tip.AddTool( GetDlgItem( IDC_ChangeHistory ), _T("this is the change
+history") );
+
return 1; // Let the system set the focus
}
***************
*** 89,94 ****
--- 98,127 ----
}
+ // Override to change message filtering
+ /* virtual BOOL PreTranslateMessage(MSG* pMsg)
+ {
+ switch(pMsg->message)
+ {
+ case WM_LBUTTONDOWN:
+ case WM_LBUTTONUP:
+ case WM_MOUSEMOVE:
+ m_tip.RelayEvent(pMsg);
+ }
+ return CDialogImplBase<CAboutDlg>::PreTranslateMessage(pMsg);
+ }
+ */
+
+ LRESULT OnMouseMessage(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
+ {
+ MSG msg = { m_hWnd, uMsg, wParam, lParam };
+ if(m_tip.IsWindow())
+ m_tip.RelayEvent(&msg);
+ bHandled = FALSE;
+ return 1;
+ }
+
private:
CHyperLink m_hlAboutURL;
+ CToolTipCtrl m_tip;
};
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
DQSD-CVS mailing list
https://lists.sourceforge.net/lists/listinfo/dqsd-cvs
DQSD CVS repository:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/