FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour WM_USER wrong value ?
Posts: 109
Joined: Sun Nov 13, 2005 12:40 AM
WM_USER wrong value ?
Posted: Sun Apr 30, 2006 01:17 PM

Hi Antonio.

We see a downside sample.

See a WindowProc Function.

WM_USER to be defined at the include.

It comes out so that (Msg) edge is wrong.

Msg result is 1026, 1027, 1028 this toe.

But.. Different value comes out.

We have probably wrong value.

How is the Receive Normal numerical value.

Yun jin Song

FWH USER -------------------------------------

FWH User

FWPPC User

FWLinux User
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
WM_USER wrong value ?
Posted: Mon May 01, 2006 02:21 PM
The following code returns 1024 which it is the right value for WM_USER:
#include "FiveWin.ch"

FUNCTION main() 

   MsgInfo( WM_USER )
    
RETURN NIL


Besides that, you code is wrong as you are just calling your PRG function on this specific value:
   if (Msg == WM_USER + 2 )  //1024 + 2 
   { 
      hb_vmPushSymbol( hb_dynsymSymbol( hb_dynsymFindName( "CHANNELCODE" ) ) );

You should change it to:
   if (Msg == WM_USER + 2 )  // 1026 
   { 
      ...
   }
   else if( Msg == WM_USER + 3 ) // 1027
   {
      ...
   }
   else if( Msg == WM_USER + 4 ) // 1028
   { 
      ...
   }

Or change it into:
   if( Msg >= WM_USER + 2 && Msg <= WM_USER + 4 )
   {
      ...
   }
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 109
Joined: Sun Nov 13, 2005 12:40 AM
WM_USER wrong value ?
Posted: Tue May 02, 2006 01:04 AM

Hi Antonio.

I thank for having the concern.
But..

A next code.
Over 1024 which Msg increases obviously comes over.
Msg = 1026 or 1027, 1028

But we do not exist properly the value.
Do you have probably the problem different?

WM_ACTIVATE and send 1026, 1027, 1028 firsts.
We VISUAL_BASIC well.

I Thank.

yun jin song.....

[

FWH User

FWPPC User

FWLinux User
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
WM_USER wrong value ?
Posted: Tue May 02, 2006 07:05 AM

yun jin song,

Sorry, I don't understand what you mean.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 109
Joined: Sun Nov 13, 2005 12:40 AM
WM_USER wrong value ?
Posted: Mon May 08, 2006 07:11 AM
Antonio Linares wrote:yun jin song,

Sorry, I don't understand what you mean.


Thank you. Antonio.
FWH User

FWPPC User

FWLinux User

Continue the discussion