Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;

0 views
Skip to first unread message

Boki

unread,
Nov 25, 2005, 1:37:15 AM11/25/05
to
Hi
What is this line stand for?

LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;
^^^^^^^^^
What is a LRESULT ?

Best regards,
Boki.

John Carson

unread,
Nov 25, 2005, 3:13:24 AM11/25/05
to
"Boki" <boki...@ms21.hinet.net> wrote in message
news:OQYmtqY...@TK2MSFTNGP12.phx.gbl


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

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winprog/winprog/windows_data_types.asp

--
John Carson

Barry Schwarz

unread,
Nov 25, 2005, 8:56:07 AM11/25/05
to
On Fri, 25 Nov 2005 14:37:15 +0800, "Boki" <boki...@ms21.hinet.net>
wrote:

>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>>

Brian Muth

unread,
Nov 25, 2005, 12:01:02 PM11/25/05
to

"Boki" <boki...@ms21.hinet.net> wrote in message
news:OQYmtqY...@TK2MSFTNGP12.phx.gbl...

> Hi
> What is this line stand for?
>
> LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;
> ^^^^^^^^^
> What is a LRESULT ?
>

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


Igor Tandetnik

unread,
Nov 25, 2005, 12:52:42 PM11/25/05
to
"Brian Muth" <bm...@mvps.org> wrote in message
news:uYR$RHe8FH...@TK2MSFTNGP14.phx.gbl

... 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


boki...@ms21.hinet.net

unread,
Nov 25, 2005, 6:25:34 PM11/25/05
to
I got it, :D

Best regards,
Boki.

John Carson 寫道:

boki...@ms21.hinet.net

unread,
Nov 25, 2005, 6:29:43 PM11/25/05
to
Can you tell me the more detail?

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.

0 new messages