LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;
^^^^^^^^^
What is a LRESULT ?
Best regards,
Boki.
If using VC++, you can right-click on any type and choose "Go to
Definition". This will show you that LRESULT is a typedef for a LONG_PTR. A
LONG_PTR is an integer that is the same size as a pointer. Thus it is a 32
bit integer on 32 bit platforms and a 64 bit integer on 64 bit platforms.
See here for a list of all Windows Data Types
--
John Carson
>Hi
> What is this line stand for?
>
>LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;
>^^^^^^^^^
>What is a LRESULT ?
>
My help screen says it is a 32-bit value returned by a callback
function but does not provide any additional detail .
<<Remove the del for email>>
The LRESULT value that is returned from a windows procedure is an indication
to the calling code whether the windows message was handled or not. LRESULT
should be set to 0 if the windows message is handled.
Brian
... except when specified otherwise in documentation for a particular
message.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
Best regards,
Boki.
John Carson 寫道:
I am newbie to VC++ and MFC, one more question, when I using a MFC, how
can I know the data members/methods...
and sometimes, I saw a lot of pXm_XXXX ..something like that, I even
don't know what is that for ...
Best regards,
Boki.