Click here to Skip to main content
15,903,388 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ARRRRRRUUUGGHHH date parsing is driving me crazy.... Pin
Robert A. T. Káldy18-Feb-04 0:21
Robert A. T. Káldy18-Feb-04 0:21 
GeneralRe: ARRRRRRUUUGGHHH date parsing is driving me crazy.... Pin
Robert A. T. Káldy18-Feb-04 1:06
Robert A. T. Káldy18-Feb-04 1:06 
GeneralRe: ARRRRRRUUUGGHHH date parsing is driving me crazy.... Pin
(Steven Hicks)n+118-Feb-04 3:22
(Steven Hicks)n+118-Feb-04 3:22 
GeneralMultiple Radio Button Pin
merlin37117-Feb-04 13:00
merlin37117-Feb-04 13:00 
GeneralRe: Multiple Radio Button Pin
Jeremy Falcon17-Feb-04 14:48
professionalJeremy Falcon17-Feb-04 14:48 
GeneralRe: Multiple Radio Button Pin
merlin37117-Feb-04 23:53
merlin37117-Feb-04 23:53 
GeneralRe: Multiple Radio Button Pin
Jeremy Falcon18-Feb-04 3:23
professionalJeremy Falcon18-Feb-04 3:23 
GeneralMovable button Pin
junkan123417-Feb-04 11:48
junkan123417-Feb-04 11:48 
Confused | :confused: Need help dudes:
I needed a class for a moveable button. So I derived a class from CButton and added the funcions OnRButtonDown, OnRButtonUp and OnMouseMove.
In OnRButtonDown I set a bool var (m_bIsDragging) to true, and in OnRButtonUp back to false;
In OnMouseMove, if m_bIsDragging==true, I check for cursor position with GetCursorPos() and set the new position for the button accordingly. It seems to work quite fine but...
PROBLEM:
while dragging, if I move the mouse too fast, the cursor exits the button client area (i.e. the button position doesnt change fast enough to keep pace) causing of course the funcion (which is a member of the button object) to stop working, and the button to stop moving.
Is it there a simple way to:
1) have the button really stick to the cursor so that it doesn't slip out of its client area;
2) have the member funcion OnMouseMove continue to get message input even if the cursor gets outside the button's client area?

Thanks in advance for any help...
Ciao from Italy!!!!
Junkan.


Junkan
GeneralRe: Movable button Pin
Robert A. T. Káldy18-Feb-04 0:26
Robert A. T. Káldy18-Feb-04 0:26 
GeneralActiveX control Pin
Anonymous17-Feb-04 11:10
Anonymous17-Feb-04 11:10 
GeneralBasic Serial I/O in VC++ Pin
JoeMass17-Feb-04 11:03
JoeMass17-Feb-04 11:03 
GeneralRe: Basic Serial I/O in VC++ Pin
Anonymous17-Feb-04 13:34
Anonymous17-Feb-04 13:34 
GeneralRe: Basic Serial I/O in VC++ Pin
r i s h a b h s17-Feb-04 22:19
r i s h a b h s17-Feb-04 22:19 
GeneralRe: Basic Serial I/O in VC++ Pin
jhorstkamp18-Feb-04 3:12
jhorstkamp18-Feb-04 3:12 
GeneralRe: Defining functions in other files Pin
satcat17-Feb-04 10:22
satcat17-Feb-04 10:22 
GeneralRe: Defining functions in other files Pin
Michael Gunlock17-Feb-04 19:16
Michael Gunlock17-Feb-04 19:16 
GeneralRecord count on a CRecordSet Pin
Ger Hayden17-Feb-04 10:11
Ger Hayden17-Feb-04 10:11 
GeneralRe: Record count on a CRecordSet Pin
David Crow17-Feb-04 10:52
David Crow17-Feb-04 10:52 
GeneralRe: Record count on a CRecordSet Pin
basementman17-Feb-04 11:17
basementman17-Feb-04 11:17 
GeneralRe: Record count on a CRecordSet Pin
David Crow18-Feb-04 2:23
David Crow18-Feb-04 2:23 
GeneralSubclassing an ActiveX Pin
Hosam CFJ17-Feb-04 9:51
Hosam CFJ17-Feb-04 9:51 
GeneralDetecting Presence of and sending actions to windows within another program Pin
Member 88819117-Feb-04 9:27
Member 88819117-Feb-04 9:27 
GeneralDetecting Presence of and sending actions to windows within another program Pin
Member 88819117-Feb-04 9:27
Member 88819117-Feb-04 9:27 
GeneralRe: Detecting Presence of and sending actions to windows within another program Pin
David Crow17-Feb-04 9:38
David Crow17-Feb-04 9:38 
GeneralRe: Detecting Presence of and sending actions to windows within another program Pin
Member 88819117-Feb-04 9:42
Member 88819117-Feb-04 9:42 

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.