Re: SysTabControl32 class

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Where did I find a reference to the MK_LBUTTON constant?

If you read mr_unreliable's second reply to this thread, he suggested at 1
point that I send the WM_LBUTTONDOWN/UP messages. I looked those messages up
at MSDN and that is the constant that the wParam parameter is set to - which
raises my next question: there are several choices for the setting of this
parameter indicating a variety of settings for the other mouse buttons.
However, there isnt any notes anywhere on what it should be set as if none of
the other mouse buttons are down. I tried setting it to 0 to no avail. Anyone
knows?

"MikeD" wrote:


"JonWayn" <JonWayn@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:08764C67-B7D9-48C0-B5A7-7EDD2CF611C8@xxxxxxxxxxxxxxxx
I have a horrible time finding the value of API constants online. Even at
MSDN website, I lookup an API function, it requires the use of some
constants, say MK_BUTTONDOWN, but nowhere do I find the actual value of
MK_BUTTONDOWN.

To my knowledge, they're nowhere on MSDN. Generally, most of us get them
from the .h files. If you're unfamiliar with .h files, these are header
files used in C++. You can also get the .h files by downloading and
installing various SDKs (such as the Platform SDK). In fact, to get the most
recent versions of .h files that includes constants, structures, etc. for
newer versions of Windows, technology, etc., you pretty much HAVE to get
updated .h files from some SDK.

The MSDN Library docs will generally tell you which .h file, but not always
(it kinda depends on how "generic" the constant is). I find it's generally
easist to fire up VC++ and do a "Find in Files" (a VERY nice feature I wish
the VB IDE had...hmm..anybody ever written an add-in for that?) for the
constant I'm looking for.

FWIW, you sure you got that constant right? I couldn't find it anywhere
(not in any .h files from the Vista Edition of the Platform SDK, VC++6, nor
even MSDN Online). Where did you find a reference to it?

I mean, what would it take for Microsoft to add that
information to any page that has the constant's name?

The thing is, the Win32API documentation is geared almost exclusively for
C++....and since in C++ you simply include the .h file, there's no "need" to
include the constant's definition in any documentation. To my knowledge,
most SDKs (from MS or others) have never included constant definitions.


Anyone here know of a web resource that lists API constants. Please
divulge.

www.allapi.net perhaps? It's probably the most complete resource for API
constants, structures, and function declarations for VB, but it's even quite
outdated.

--
Mike
Microsoft MVP Visual Basic



.


Quantcast