Click here to Skip to main content
15,924,317 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Access violation trying to use ActiveX dll Pin
Killen11-Dec-03 22:25
Killen11-Dec-03 22:25 
QuestionHow to determine the position of a nontopmost windowin the Z-order? Pin
julych10-Dec-03 23:13
julych10-Dec-03 23:13 
GeneralFormat text and print Pin
terence200410-Dec-03 22:37
terence200410-Dec-03 22:37 
GeneralRe: Format text and print Pin
Ravi Bhavnani11-Dec-03 3:15
professionalRavi Bhavnani11-Dec-03 3:15 
GeneralRe: Format text and print Pin
terence200420-Dec-03 18:05
terence200420-Dec-03 18:05 
GeneralDrawing themed toolbar bg Pin
Roger Alsing10-Dec-03 22:15
Roger Alsing10-Dec-03 22:15 
GeneralStop double click message from being sent Pin
Mathias S.10-Dec-03 21:57
Mathias S.10-Dec-03 21:57 
GeneralRe: Stop double click message from being sent Pin
Marek Grzenkowicz11-Dec-03 1:39
Marek Grzenkowicz11-Dec-03 1:39 
I'm not sure, if I understood you properly, but I guess that you should do something like this:

1. Run ClassWizard.
2. Go to Message Maps tab.
3. Choose your class (on the left-hand side).
4. Find WM_LBUTTONDBLCLK (on the right-hand side).
5. Hit Add Function and then Edit Code.
6. Remove (e.g. comment out) standard message handler and, if you want to, add your own (e.g. a message box saying that double clicks are disabled).
void CTest::OnLButtonDblClk(UINT nFlags, CPoint point) 
{
    //default message handler
    //CListCtrl::OnLButtonDblClk(nFlags, point);

    //your own message handler (optional)
    AfxMessageBox("Double clicks are disabled.");
}

Let me know if this was helpful.

"Gods die, when their believers are gone." --from Sandman by Neil Gaiman
GeneralRe: Stop double click message from being sent Pin
Mathias S.11-Dec-03 2:28
Mathias S.11-Dec-03 2:28 
GeneralRe: Stop double click message from being sent Pin
Anthony_Yio11-Dec-03 22:39
Anthony_Yio11-Dec-03 22:39 
Questionhow Get CComboBox text Pin
google7310-Dec-03 21:12
google7310-Dec-03 21:12 
AnswerRe: how Get CComboBox text Pin
Abebe10-Dec-03 21:19
Abebe10-Dec-03 21:19 
GeneralRe: how Get CComboBox text Pin
google7310-Dec-03 22:25
google7310-Dec-03 22:25 
GeneralRe: how Get CComboBox text Pin
Abebe10-Dec-03 22:52
Abebe10-Dec-03 22:52 
GeneralRe: how Get CComboBox text Pin
google7311-Dec-03 14:54
google7311-Dec-03 14:54 
GeneralRe: how Get CComboBox text Pin
Abebe11-Dec-03 21:01
Abebe11-Dec-03 21:01 
GeneralRe: how Get CComboBox text Pin
google7310-Dec-03 22:25
google7310-Dec-03 22:25 
AnswerRe: how Get CComboBox text Pin
Cedric Moonen11-Dec-03 1:29
Cedric Moonen11-Dec-03 1:29 
GeneralRe: how Get CComboBox text Pin
google7311-Dec-03 14:49
google7311-Dec-03 14:49 
GeneralRTF Pin
cobra10-Dec-03 20:56
cobra10-Dec-03 20:56 
GeneralRe: RTF Pin
Joel Lucsy11-Dec-03 4:02
Joel Lucsy11-Dec-03 4:02 
GeneralRe: RTF Pin
cobra11-Dec-03 20:44
cobra11-Dec-03 20:44 
GeneralExcel and c++ Pin
mitil2039048230410-Dec-03 20:42
mitil2039048230410-Dec-03 20:42 
GeneralRe: Excel and c++ Pin
keegan10-Dec-03 22:06
keegan10-Dec-03 22:06 
GeneralRe: Excel and c++ Pin
mitil2039048230411-Dec-03 6:48
mitil2039048230411-Dec-03 6:48 

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.