Re: SysTabControl32 class

Tech-Archive recommends: Repair Windows Errors & Optimize Windows 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



.



Relevant Pages

  • Re: SysTabControl32 class
    ... MSDN website, I lookup an API function, it requires the use of some ... To my knowledge, they're nowhere on MSDN. ... most SDKs have never included constant definitions. ... Anyone here know of a web resource that lists API constants. ...
    (microsoft.public.vb.winapi)
  • Re: DllMain vs. DllMain
    ... It does not, except by coincidence, document any of the Win32 API. ... >> BOOL WINAPI DllMain( ... is a user of VC++6 supposed to obey the MSDN page that tells VC++6 ... Use the documentation for the API. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: DllMain vs. DllMain
    ... obey the MSDN page that says what the API itself is? ... contains instructions for VC++6 programmers or descriptions of the APIs ... work this morning and fail this afternoon because undocumented behaviour is ...
    (microsoft.public.win32.programmer.kernel)
  • Re: DFS Client NetDfs API in MSDN - NetDfsSetClientInfo
    ... trying to make a simple API call work because the Microsoft documentation ... flat out wrong in MSDN library, MSDN online, and every other site that ... the NetDfsSetClientInfo and NetDfsGetClientInfo API calls both ... This is not the first MSDN documentation error I have dealt with, ...
    (microsoft.public.win32.programmer.networks)
  • Re: Win32 API
    ... Allerdings ist auch diese Datei ... DirectX ist ein eigenes SDK und hat mit der Win32 API nichts zu tun. ... Die MSDN ist die beste und einzige Quelle, ...
    (microsoft.public.de.vc)