![]() |
|
QA: How to disable red dots in the list control?
By Nicholas Tsipanov, February 12, 2004.
Question
I have a list control in my application.
This listbox does not need a context menu,
and therefore I don't want running red dots to appear
while the user holds the stylus on the control. AnswerThe solution is simple: You have to answer with TRUE to NM_RECOGNIZEGESTURE notification message in its parent window. We can notice that this applies not only to list control but to tree view as well. There is a pitfall here though: NM_RECOGNIZEGESTURE has different values on Pocket PC 2002 and Pocket PC 2003!Thus, for Pocket PC 2002 it is defined as while for Pocket PC 2003 the value is : So the MFC code sample is (we are trying to handle both 2002 and 2003 cases): Related resources:
DiscussDiscuss this article. Here you can write your comments and read comments of other developers. |
|||||||||||||||||||||