Click here to Skip to main content
16,008,075 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General[Message Deleted] Pin
VladTheImpaler17-Sep-01 19:04
VladTheImpaler17-Sep-01 19:04 
GeneralRe: NAMESPACE: to use or not to use Pin
Michael Dunn17-Sep-01 19:14
sitebuilderMichael Dunn17-Sep-01 19:14 
GeneralGetting Text from another programs window Pin
Brad Chase17-Sep-01 15:19
Brad Chase17-Sep-01 15:19 
GeneralRe: Getting Text from another programs window Pin
17-Sep-01 18:07
suss17-Sep-01 18:07 
QuestionWhat is the true version # of Windows XP? Pin
Masaaki Onishi17-Sep-01 13:21
Masaaki Onishi17-Sep-01 13:21 
AnswerRe: What is the true version # of Windows XP? Pin
Anders Molin17-Sep-01 22:47
professionalAnders Molin17-Sep-01 22:47 
GeneralResource ID's and CMenu Pin
Jon Marcus17-Sep-01 13:09
Jon Marcus17-Sep-01 13:09 
QuestionCBitmapButton OnMouseMove??? Pin
Jesper S17-Sep-01 11:08
Jesper S17-Sep-01 11:08 
In a dialog based app. how can I detect WM_MOUSEMOVE on a CBitmapButton?

I´ve declared a CBitmapButton m_add and then WM_MOUSEMOVE (OnMouseMove) but the CBitmapButton just doesn´t detect when mouse is over it...

Here´s the code sample.

CBitmapButton m_add;

void CMyDlg::OnMouseMove(UINT nFlags, CPoint point)
{
CRect rect;
m_add.GetWindowRect(rect);

if (rect.PtInRect(point))
{
AfxMessageBox("Add button");
}

/*
if(WindowFromPoint(point) == GetDlgItem(IDC_BASEADD))
{
AfxMessageBox("Add Button");
}
*/
CDialog::OnMouseMove(nFlags, point);
}

None of the above two methods works in a dialog based app. Can anybody help me out??? It would make my day sort of speak... Thanks!!!

Jesper S.
AnswerRe: CBitmapButton OnMouseMove??? Pin
Tomasz Sowinski17-Sep-01 11:16
Tomasz Sowinski17-Sep-01 11:16 
GeneralRe: CBitmapButton OnMouseMove??? Pin
Jesper S17-Sep-01 11:47
Jesper S17-Sep-01 11:47 
GeneralRe: CBitmapButton OnMouseMove??? Pin
Jesper S17-Sep-01 12:38
Jesper S17-Sep-01 12:38 
Questiontransferring binary data - sockets - how? Pin
17-Sep-01 10:54
suss17-Sep-01 10:54 
AnswerRe: transferring binary data - sockets - how? Pin
Tili17-Sep-01 13:06
Tili17-Sep-01 13:06 
Generalcan't shake mfc default icon Pin
Amit Jain17-Sep-01 10:39
Amit Jain17-Sep-01 10:39 
GeneralRe: can't shake mfc default icon Pin
Tomasz Sowinski17-Sep-01 10:45
Tomasz Sowinski17-Sep-01 10:45 
GeneralRe: can't shake mfc default icon Pin
Amit Jain17-Sep-01 12:51
Amit Jain17-Sep-01 12:51 
GeneralRe: can't shake mfc default icon Pin
Michael Dunn17-Sep-01 19:16
sitebuilderMichael Dunn17-Sep-01 19:16 
GeneralRe: can't shake mfc default icon Pin
Amit Jain21-Sep-01 7:57
Amit Jain21-Sep-01 7:57 
GeneralTabbing in a dialog stored in a DLL Pin
Steve The Plant17-Sep-01 9:49
Steve The Plant17-Sep-01 9:49 
GeneralRe: Tabbing in a dialog stored in a DLL Pin
Tomasz Sowinski17-Sep-01 9:53
Tomasz Sowinski17-Sep-01 9:53 
GeneralRe: Tabbing in a dialog stored in a DLL Pin
Steve The Plant18-Sep-01 11:21
Steve The Plant18-Sep-01 11:21 
GeneralRe: Tabbing in a dialog stored in a DLL Pin
Tomasz Sowinski18-Sep-01 11:29
Tomasz Sowinski18-Sep-01 11:29 
GeneralRe: Tabbing in a dialog stored in a DLL Pin
Steve The Plant19-Sep-01 5:38
Steve The Plant19-Sep-01 5:38 
GeneralRe: Tabbing in a dialog stored in a DLL Pin
Tomasz Sowinski19-Sep-01 6:41
Tomasz Sowinski19-Sep-01 6:41 
QuestionHow to gray out PropertyPage Tabs? Pin
Jerry Wang17-Sep-01 9:22
Jerry Wang17-Sep-01 9:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.