Owner Draw CButton derived class & doubleclick
is it possible to "shutoff" the doubleclick event with an owner draw button?
or am i to implement an OnDblClck handler and then call OnLButtonDown within it?
[166 byte] By [
bigBA] at [2007-11-18 20:34:21]

# 1 Re: Owner Draw CButton derived class & doubleclick
The 'ownerDraw' style really doesnt affect the messaging mechanism of a control.
You have to either override PretranslateMsg and "shutoff" the doubleclick there by returning TRUE. Check MSDN doc about PreTranslateMessage
# 2 Re: Owner Draw CButton derived class & doubleclick
maybe,
but on a normal CButon i can click very fast and it gets all that clicks
click
click
click and so on
my Cbutton derived class with ownerdraw style recieves only every second click...
click
doubleclick
click
doubleckick
and so on
i solved this by addin a OnLButtonDblClck handler and in it call the the OnLButton handler...
but isn't there another way?
bigBA at 2007-11-11 1:13:21 >
