main logo
Subject: Re: user32.dll sendmessage call
Author: "Derek Kalweit"
Posted: 2006/03/31 16:56:27
 
View Entire Thread
New Search


> I wrote some time ago about using the sendmessage call in user32.dll to
> change the background on a treeview form.
>
>
>
> This works well on three projects that I am developing at the moment,
> however I am rehashing a project for a client to use the same treeview
> menu structure and I am getting an error.
>
>
>
> The only differences between this project and the the others is a, the
> original was built using VFP8.0 and I have pulled it in as a VFP9.0
> project, and b, I have simply added the code into main.prg.
>
> I can not see were there are any differences in the relative main.prgs
> other that the default paths setup.
>
>
>
> The message I get is "Invalid path or file name.
>
> I suspend into the Debugger and the line that is failing is
>
>
>
> Declare integer SendMessage in User32 ;
>
> integer hWnd, integer Msg, integer wParam, integer lParam
>
>
>
> The next two lines are
>
>
>
> nBColour = 16640635 && GETCOLOR()
>
>
>
> SendMessage(ThisForm.OleTreeView.hWnd,4381,0,nBColour)
>
>
>
> I then get the error a second time on the last line.
>
>
>
> Any ideas Please.

You're not calling SendMessage before READ EVENTS, are you?


--
Derek



 
©2006 Derek Kalweit
<-- Prior Message New Search Next Message -->