Click here to Skip to main content
15,891,423 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Ownerdraw button problem Pin
LaHaHa12-Jan-06 16:58
LaHaHa12-Jan-06 16:58 
GeneralRe: Ownerdraw button problem Pin
Owner drawn12-Jan-06 17:22
Owner drawn12-Jan-06 17:22 
GeneralRe: Ownerdraw button problem Pin
LaHaHa12-Jan-06 18:24
LaHaHa12-Jan-06 18:24 
GeneralRe: Ownerdraw button problem Pin
vikas amin12-Jan-06 19:34
vikas amin12-Jan-06 19:34 
GeneralRe: Ownerdraw button problem Pin
LaHaHa12-Jan-06 19:47
LaHaHa12-Jan-06 19:47 
AnswerRe: Ownerdraw button problem Pin
Prakash Nadar12-Jan-06 20:22
Prakash Nadar12-Jan-06 20:22 
GeneralRe: Ownerdraw button problem Pin
LaHaHa12-Jan-06 21:14
LaHaHa12-Jan-06 21:14 
GeneralRe: Ownerdraw button problem Pin
Owner drawn12-Jan-06 21:27
Owner drawn12-Jan-06 21:27 
You should have told this before. You told your button looked dumb and nothing else.Hmmm | :|

The problem here is that when you click twice it is not a WM_LBUTTONDOWN but now it is WM_LBUTTONDBLCLK.

Normally buttons don't handle this.

Now you can do this. Inside the WM_LBUTTONDBLCLK handler simulate a single click like this

void CYourButton::OnLButtonDblClk(UINT nFlags, CPoint point)
{
	::SendMessage(GetSafeHwnd(), WM_LBUTTONDOWN, (WPARAM)nFlags, MAKELPARAM(point.x, point.y));
}

Jesus LovesRose | [Rose]
<marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background:#aabbcc;border-bottom:thin solid 1px #6699cc">
--Owner DrawnRose | [Rose]
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is LordRose | [Rose]

GeneralRe: Ownerdraw button problem Pin
LaHaHa12-Jan-06 21:48
LaHaHa12-Jan-06 21:48 
GeneralRe: Ownerdraw button problem Pin
Owner drawn12-Jan-06 21:51
Owner drawn12-Jan-06 21:51 
GeneralRe: Ownerdraw button problem Pin
LaHaHa12-Jan-06 22:07
LaHaHa12-Jan-06 22:07 
QuestionCListCtrl? Pin
dipuks12-Jan-06 14:33
dipuks12-Jan-06 14:33 
AnswerRe: CListCtrl? Pin
Christian Graus12-Jan-06 14:51
protectorChristian Graus12-Jan-06 14:51 
GeneralRe: CListCtrl? Pin
dipuks12-Jan-06 16:05
dipuks12-Jan-06 16:05 
GeneralRe: CListCtrl? Pin
Christian Graus12-Jan-06 16:07
protectorChristian Graus12-Jan-06 16:07 
AnswerRe: CListCtrl? Pin
Rajesh R Subramanian12-Jan-06 17:40
professionalRajesh R Subramanian12-Jan-06 17:40 
GeneralRe: CListCtrl? Pin
dipuks14-Jan-06 10:59
dipuks14-Jan-06 10:59 
GeneralRe: CListCtrl? Pin
Rajesh R Subramanian15-Jan-06 16:56
professionalRajesh R Subramanian15-Jan-06 16:56 
GeneralRe: CListCtrl? Pin
dipuks15-Jan-06 18:15
dipuks15-Jan-06 18:15 
QuestionTrying to get an object to bounce back and forth Pin
chadsxe12-Jan-06 13:36
chadsxe12-Jan-06 13:36 
AnswerRe: Trying to get an object to bounce back and forth Pin
Stephen Hewitt12-Jan-06 14:01
Stephen Hewitt12-Jan-06 14:01 
AnswerRe: Trying to get an object to bounce back and forth Pin
Bob Flynn13-Jan-06 0:39
Bob Flynn13-Jan-06 0:39 
Questionofstream driving me nuts Pin
Brian van der Beek12-Jan-06 11:00
Brian van der Beek12-Jan-06 11:00 
AnswerRe: ofstream driving me nuts Pin
Christian Graus12-Jan-06 12:57
protectorChristian Graus12-Jan-06 12:57 
GeneralRe: ofstream driving me nuts Pin
Brian van der Beek12-Jan-06 20:25
Brian van der Beek12-Jan-06 20:25 

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.