Original Post
🔒 Locked
Mouse click trouble!!!
Advertisement
Yeah in LRESULT CALLBACK WndProc add these case statements:
|
If you have your thing set to catch double clicks, you won''t get the message if the user clicks very quickly. You get WM_LBUTTONDBLCLK instead. If that''s a problem, you can change the windows class style, or you can write it as:
If the opposite is true, you can have those for seperate cases, and you need to set the flag CS_DBLCLKS in the style part of your window class.
Off Topic:
You know, I can make dos code look artistic, but my windows code always looks like crap. What up with that? That''s why I always hide my windows code in some file that nobody would ever look at, like ''ugly_windows_code_dont_look_at_it_or_you_will_die_and_i_cant_be_held_responsible.yuck''
and then my make entry part of my program into something like this:
--main.cpp--
#include "ugly_windows_code_dont_look_at_it_or_you_will_die_and_i_cant_be_held_responsible.yuck"
--End of main.cpp--
Which is much nicer to look at, and it adds a sense of mystery to the debugging process.
|
If the opposite is true, you can have those for seperate cases, and you need to set the flag CS_DBLCLKS in the style part of your window class.
Off Topic:
You know, I can make dos code look artistic, but my windows code always looks like crap. What up with that? That''s why I always hide my windows code in some file that nobody would ever look at, like ''ugly_windows_code_dont_look_at_it_or_you_will_die_and_i_cant_be_held_responsible.yuck''
and then my make entry part of my program into something like this:
--main.cpp--
#include "ugly_windows_code_dont_look_at_it_or_you_will_die_and_i_cant_be_held_responsible.yuck"
--End of main.cpp--
Which is much nicer to look at, and it adds a sense of mystery to the debugging process.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement