Peticion de funcion

Peticion de funcion

Postby astursoft » Sun Dec 18, 2005 2:11 pm

Sería posible disponer de la funcion SHFullScreen para poder poner o quitar el botondel teclado ?
Gracias .
Jose Luis Parajón
Asturias
User avatar
astursoft
 
Posts: 139
Joined: Sun Nov 06, 2005 6:14 pm
Location: Asturias

Postby astursoft » Sun Dec 18, 2005 8:54 pm

Ya está .
con estas funciones escondemos o sacamos el boton del teclado.

Code: Select all  Expand view

HB_FUNC(SHOWSIP)
  {
SHFullScreen(GetActiveWindow(), SHFS_SHOWSIPBUTTON);
}

HB_FUNC(HIDESIP)
  {
SHFullScreen(GetActiveWindow(), SHFS_HIDESIPBUTTON);
}



Saludso.
Jose Luis Parajón
Asturias
User avatar
astursoft
 
Posts: 139
Joined: Sun Nov 06, 2005 6:14 pm
Location: Asturias

Postby Antonio Linares » Sun Dec 18, 2005 9:51 pm

Jose Luis,

La implementamos para el próximo build, mientras tanto aqui tienes un ejemplo de como implementarla ya en un PRG tuyo:

Code: Select all  Expand view
...
return nil

#pragma BEGINDUMP

#include <hbapi.h>
#include <windows.h>
#include <aygshell.h>

HB_FUNC( SHFULLSCREEN )
{
   hb_retl( SHFullScreen( ( HWND ) hb_parnl( 1 ), hb_parnl( 2 ) ) );
}      

#pragma ENDDUMP


Los valores a pasarle estan explicados aqui:
http://msdn.microsoft.com/library/defau ... l_fsiq.asp

y un ejemplo sería:

SHFullScreen( oWnd:hWnd, ... )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin para Pocket PC

Who is online

Users browsing this forum: No registered users and 29 guests