Click here to Skip to main content
15,913,361 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralI need help about how to use OpenSSL library. Pin
Artem Moroz8-Nov-03 11:39
Artem Moroz8-Nov-03 11:39 
GeneralRe: I need help about how to use OpenSSL library. Pin
Johnny ²9-Nov-03 3:37
Johnny ²9-Nov-03 3:37 
GeneralRe: I need help about how to use OpenSSL library. Pin
cperdana28-Mar-10 20:00
cperdana28-Mar-10 20:00 
GeneralLonghorn programming and WinFX Pin
Snyp8-Nov-03 10:03
Snyp8-Nov-03 10:03 
GeneralI want to open NEXT or PREV file. with button control Pin
gaesabal8-Nov-03 8:58
gaesabal8-Nov-03 8:58 
GeneralRe: I want to open NEXT or PREV file. with button control Pin
Antti Keskinen8-Nov-03 10:44
Antti Keskinen8-Nov-03 10:44 
QuestionHow do I handle Single and Double Mouse Clicks? Pin
jasonmgeorge8-Nov-03 8:30
jasonmgeorge8-Nov-03 8:30 
AnswerRe: How do I handle Single and Double Mouse Clicks? Pin
Antti Keskinen8-Nov-03 9:58
Antti Keskinen8-Nov-03 9:58 
If you used the App Wizard to create the project for you, then go to your main window's (Frame window or dialog) PreCreateWindow override. If you don't have this override yet, create it by using Class Wizard.

In this override, you must register a new window class (AfxRegisterWndClass) with 'CS_DBLCLKS' class style, and place the return value of the registration call to the class name member of the CREATESTRUCT structure. Now, whenever user double-clicks the mouse over your window, a WM_LBUTTONDBLCLK / WM_RBUTTONDBLCLK message is generated for the window.

Here's a code fragment to help you out:
BOOL CMyDerivedCWnd::PreCreateWindow(CREATESTRUCT& cs)<br />
{<br />
	// Using the CREATESTRUCT reference, <br />
        // register a new window class that supports double-clicks<br />
	cs.lpszClass = AfxRegisterWndClass(CS_DBLCLKS, NULL, NULL, NULL);<br />
<br />
        // Call base class<br />
	return CWnd::PreCreateWindow(cs);<br />
}


The single-click and the double-click are seperate events. You create the first by clicking once, and you generate the second by clicking twice quickly. So, when you do a quick double-click, only the double-click event is sent, providing that your window class style supports double-click messages, as specified above.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralRe: How do I handle Single and Double Mouse Clicks? Pin
jasonmgeorge8-Nov-03 10:33
jasonmgeorge8-Nov-03 10:33 
GeneralRe: How do I handle Single and Double Mouse Clicks? Pin
Antti Keskinen8-Nov-03 11:06
Antti Keskinen8-Nov-03 11:06 
AnswerRe: How do I handle Single and Double Mouse Clicks? Pin
Michael Dunn8-Nov-03 14:30
sitebuilderMichael Dunn8-Nov-03 14:30 
GeneralBITMAPV4HEADER &amp; BITMAPV5HEADER Pin
John R. Shaw8-Nov-03 7:34
John R. Shaw8-Nov-03 7:34 
GeneralRe: BITMAPV4HEADER &amp; BITMAPV5HEADER Pin
J. Dunlap8-Nov-03 13:22
J. Dunlap8-Nov-03 13:22 
GeneralWindows Address Book Pin
PJ Arends8-Nov-03 7:17
professionalPJ Arends8-Nov-03 7:17 
GeneralRe: Windows Address Book Pin
cmk8-Nov-03 9:45
cmk8-Nov-03 9:45 
GeneralRe: Windows Address Book Pin
PJ Arends9-Nov-03 6:58
professionalPJ Arends9-Nov-03 6:58 
GeneralRe: Windows Address Book Pin
Peter Molnar8-Nov-03 9:45
Peter Molnar8-Nov-03 9:45 
GeneralRe: Windows Address Book Pin
PJ Arends9-Nov-03 6:59
professionalPJ Arends9-Nov-03 6:59 
Questionhow to find the number of same items in two STL vectors Pin
hesham_16820018-Nov-03 6:47
hesham_16820018-Nov-03 6:47 
AnswerRe: how to find the number of same items in two STL vectors Pin
ZoogieZork8-Nov-03 8:03
ZoogieZork8-Nov-03 8:03 
GeneralSend Sms using visaul c++ 6 Pin
nolanl8-Nov-03 3:04
nolanl8-Nov-03 3:04 
GeneralRe: Send Sms using visaul c++ 6 Pin
Peter Molnar8-Nov-03 5:28
Peter Molnar8-Nov-03 5:28 
GeneralRe: Send Sms using visaul c++ 6 Pin
nolanl9-Nov-03 23:31
nolanl9-Nov-03 23:31 
GeneralCButton declaration Pin
Ahmed Galal8-Nov-03 2:30
Ahmed Galal8-Nov-03 2:30 
GeneralRe: CButton declaration Pin
Antti Keskinen8-Nov-03 12:05
Antti Keskinen8-Nov-03 12:05 

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.