Página 1 de 1

FindWindow

Publicado: Vie May 26, 2006 3:33 am
por Capsol Coder
Hi
I am trying to use FindWindow but it says it's undefined as a function
DO I need to include anything to get this to work?
Regards Nick

FindWindow

Publicado: Vie May 26, 2006 9:21 am
por ignacio
Capsol,
Please be more precise. I really do not know what your are talking about.
Regards
"Capsol Coder" <nick__NOSPAM__@capsol.com.au> escribió en el mensaje
news:[email=44765adb@ozsrvnegro.ozlan.local...]44765adb@ozsrvnegro.ozlan.local...[/email]
> Hi
>
> I am trying to use FindWindow but it says it's undefined as a function
>
> DO I need to include anything to get this to work?
>
> Regards Nick
>

FindWindow

Publicado: Vie May 26, 2006 1:51 pm
por Capsol Coder
Sorry...good point
The Win API function FindWindow()
HWND FindWindow(
LPCTSTR lpClassName,
LPCTSTR lpWindowName
);
I have been using What32 and also XHB Winapi libs.
I guess I'm wondering what to use in xailer for things to do with the Win32
API
BTW, I love the explorer bar.....
Thanks,
Nick
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
news:4476ac8e$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Capsol,
>
> Please be more precise. I really do not know what your are talking about.
>
> Regards
>
> "Capsol Coder" <nick__NOSPAM__@capsol.com.au> escribió en el mensaje
> news:[email=44765adb@ozsrvnegro.ozlan.local...]44765adb@ozsrvnegro.ozlan.local...[/email]
>> Hi
>>
>> I am trying to use FindWindow but it says it's undefined as a function
>>
>> DO I need to include anything to get this to work?
>>
>> Regards Nick
>>
>
>

FindWindow

Publicado: Vie May 26, 2006 2:19 pm
por ignacio
Nick,
Xailer does not have a wrapper for every Windows API function. We believe is
unnecessary due the INLINE C feature built in [x]Harbour.
As you can see in Xailer documentation, on the Functions- Windows functions
area, there a some Windows API functions accessibles directly from Xailer.
Is possible, like in your case, that an API function is not present. But
normally is really easy to implement. If you have any problem on doing such
task we will be glad to help you.
Here is the wrapper for your FindWindow():
#pragma BEGINDUMP
#include <windows.h>
#include <commctrl.h>
#include <xailer.h>
XA_FUNC( FINDWINDOW )
{
hb_retnl( (long) FindWindow( hb_parc( 1 ), hb_parc( 2 ) ) );
}
#pragma ENDDUMP
You can put this code on any part of your actual PRG files.
> BTW, I love the explorer bar.....
Glad to here that :-)
Regards,
"Capsol Coder" <nick__NOSPAM__@capsol.com.au> escribió en el mensaje
news:[email=4476ebb5@ozsrvnegro.ozlan.local...]4476ebb5@ozsrvnegro.ozlan.local...[/email]
> Sorry...good point
>
> The Win API function FindWindow()
>
> HWND FindWindow(
> LPCTSTR lpClassName,
> LPCTSTR lpWindowName
> );
>
>
> I have been using What32 and also XHB Winapi libs.
>
> I guess I'm wondering what to use in xailer for things to do with the
> Win32 API
>
> BTW, I love the explorer bar.....
>
> Thanks,
>
> Nick
>
>
>
>
> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
> news:4476ac8e$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>> Capsol,
>>
>> Please be more precise. I really do not know what your are talking about.
>>
>> Regards
>>
>> "Capsol Coder" <nick__NOSPAM__@capsol.com.au> escribió en el mensaje
>> news:[email=44765adb@ozsrvnegro.ozlan.local...]44765adb@ozsrvnegro.ozlan.local...[/email]
>>> Hi
>>>
>>> I am trying to use FindWindow but it says it's undefined as a function
>>>
>>> DO I need to include anything to get this to work?
>>>
>>> Regards Nick
>>>
>>
>>
>
>

FindWindow

Publicado: Vie May 26, 2006 2:31 pm
por Capsol Coder
Thanks heaps for that
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
news:4476f26d$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Nick,
>
> Xailer does not have a wrapper for every Windows API function. We believe
> is unnecessary due the INLINE C feature built in [x]Harbour.
>
> As you can see in Xailer documentation, on the Functions- Windows
> functions area, there a some Windows API functions accessibles directly
> from Xailer. Is possible, like in your case, that an API function is not
> present. But normally is really easy to implement. If you have any problem
> on doing such task we will be glad to help you.
>
> Here is the wrapper for your FindWindow():
>
> #pragma BEGINDUMP
>
> #include <windows.h>
> #include <commctrl.h>
> #include <xailer.h>
>
> XA_FUNC( FINDWINDOW )
> {
> hb_retnl( (long) FindWindow( hb_parc( 1 ), hb_parc( 2 ) ) );
> }
>
> #pragma ENDDUMP
>
> You can put this code on any part of your actual PRG files.
>
>> BTW, I love the explorer bar.....
> Glad to here that :-)
>
> Regards,
>
> "Capsol Coder" <nick__NOSPAM__@capsol.com.au> escribió en el mensaje
> news:[email=4476ebb5@ozsrvnegro.ozlan.local...]4476ebb5@ozsrvnegro.ozlan.local...[/email]
>> Sorry...good point
>>
>> The Win API function FindWindow()
>>
>> HWND FindWindow(
>> LPCTSTR lpClassName,
>> LPCTSTR lpWindowName
>> );
>>
>>
>> I have been using What32 and also XHB Winapi libs.
>>
>> I guess I'm wondering what to use in xailer for things to do with the
>> Win32 API
>>
>> BTW, I love the explorer bar.....
>>
>> Thanks,
>>
>> Nick
>>
>>
>>
>>
>> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
>> news:4476ac8e$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>>> Capsol,
>>>
>>> Please be more precise. I really do not know what your are talking
>>> about.
>>>
>>> Regards
>>>
>>> "Capsol Coder" <nick__NOSPAM__@capsol.com.au> escribió en el mensaje
>>> news:[email=44765adb@ozsrvnegro.ozlan.local...]44765adb@ozsrvnegro.ozlan.local...[/email]
>>>> Hi
>>>>
>>>> I am trying to use FindWindow but it says it's undefined as a function
>>>>
>>>> DO I need to include anything to get this to work?
>>>>
>>>> Regards Nick
>>>>
>>>
>>>
>>
>>
>
>