Sunteți pe pagina 1din 5

MigSoft & Harbour

Programacin Harbour (by Miguel Angel Jurez Apaza)


Buscar

Men

Ventana Transparente

1.
2.
3.
4.
5.
6.
7.
8.

/*
* MINIGUI - Harbour Win32 GUI library Demo
*
* Copyright 2002-2005 Roberto Lopez <roblez@ciudad.com.ar>
* http://www.geocities.com/harbour_minigui/
*
* Adapted for ooHG by MigSoft 2007 <migsoft At oohg.org>
*/
converted by Web2PDFConvert.com

8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.

*/
#include "oohg.ch"
Function Main()
Local nTra := 100, hWnd
DEFINE WINDOW WinTr ;
AT 0,0 ;
WIDTH 300 ;
HEIGHT 300 ;
TITLE 'Transparent window' ;
MAIN ;
NOSIZE NOMAXIMIZE ;
ON INIT ( hWnd := GetFormHandle('WinTR'), SetTransparent(hWnd, nTra) )
@ 200,100 BUTTON But1 ;
CAPTION "Click Me" ;
HEIGHT 35 WIDTH 100 ;
ACTION ( nTra := IIF(nTra == 100, 255, 100), SetTransparent(hWnd, nTra) )
END WINDOW
CENTER WINDOW WinTR
ACTIVATE WINDOW WinTR
RETURN NIL

#pragma BEGINDUMP
#define _WIN32_IE 0x0500
#define HB_OS_WIN_32_USED
#define _WIN32_WINNT 0x0400
#define WS_EX_LAYERED 0x80000
#define LWA_ALPHA 0x02
#include <windows.h>
#include "hbapi.h"
HB_FUNC( SETTRANSPARENT )
{
typedef BOOL (__stdcall *PFN_SETLAYEREDWINDOWATTRIBUTES) (HWND, COLORREF, BYTE, DWORD);
PFN_SETLAYEREDWINDOWATTRIBUTES pfnSetLayeredWindowAttributes = NULL;
HINSTANCE hLib = LoadLibrary("user32.dll");
if (hLib != NULL)
{
pfnSetLayeredWindowAttributes = (PFN_SETLAYEREDWINDOWATTRIBUTES) GetProcAddress(hLib, "SetLayeredWindowAttributes");
}
if (pfnSetLayeredWindowAttributes)
{
SetWindowLong((HWND) hb_parnl (1), GWL_EXSTYLE, GetWindowLong((HWND) hb_parnl (1), GWL_EXSTYLE) | WS_EX_LAYERED);
pfnSetLayeredWindowAttributes((HWND) hb_parnl (1), 0, hb_parni (2), LWA_ALPHA);
}
if (!hLib)
{
FreeLibrary(hLib);
}
}
#pragma ENDDUMP

Etiquetado en: Ventana Transparente

converted by Web2PDFConvert.com

MigSoft

julio 14, 2015

Ejemplos, GUI, Harbour

Clase TMySql de Harbour

Editor de cdigo SynWrite

Entradas Recientes
DBF Viewer 2020 Cdigo Fuente I
MySQL ABM Cdigo Liberado VI
Herramienta para MySQL Cdigo Liberado V
Herramienta para MySQL Cdigo Liberado IV
Herramienta para MySQL Cdigo Liberado III
Herramienta para MySQL Cdigo Liberado II
Herramienta para MySQL Cdigo Liberado I
Librera Grfica Bos Taurus
Ejemplo RMChart desde DLL
Prototipo de GUI por Roberto Lopez
Ejemplo [blowfish.prg] Encriptar mensaje
Ejemplo [arreval.prg] AEval()
Ejemplo [array16.prg] Array multidimensional
Ejemplo [ains.prg] Funciones para Arrays
Ejemplo [achoice3.prg] Seleccin
Ejemplo [achoice.prg] Seleccin
Gestionar bases de datos PostgreSQL
Incluir propiedades en archivos .EXE
Configurar SynWrite para Harbour
Editor de cdigo SynWrite
Ventana Transparente
Clase TMySql de Harbour
Agenda de Contactos MySQL
Dolphin para MySQL
Abrir Aplicaciones Externas
MyBrowse
FastFind
BaseGraph
Histogram
Herramienta MySQL Mejorada

Archivos
Elegir mes

converted by Web2PDFConvert.com

GNU
An Introduction to GCC
GCC
GCC Command-Line Options
GCC for both x64 & x86 Windows
GCC online documentation
GNU Linker Options
GNU Manual
GNU Option Summary
GNU `make'
MinGW cross compiling environment
Programming Notes
Yet Another Tutorial on GCC and Make

Harbour
Dolphin for (x)Harbour
Harbour Developers
Harbour How To
Harbour Language Programming
Harbour Manual
Harbour Reference Guide
HBQT-Tutorial
HMG Forum
How to build HARBOUR from source in 10 minutes
Object Oriented Harbour GUI
Proyecto Harbour

Recursos
ADO and ADO.NET connection strings
ADO Data Types
ADO Reference
Artculos Latin Developers
Catlogo de Software Libre
Color Converter
Comandos y funciones de Visual FoxPro compatibles
Command line reference: Database and Operating Systems.
Compatibilidad de datos de OLE DB de Visual FoxPro
Curso de C++
converted by Web2PDFConvert.com

FunctionX Tutorials
Manual de referencia Clipper
Norton Guide
Notas sobre Lenguage C
Notas sobre Lenguage C II
Programacin en Clipper
References
Software optimization resources
SQL Tutorial
Stack Overflow

Copyright 2016 MigSoft & Harbour. Powered by WordPress. Theme: Spacious by ThemeGrill.

converted by Web2PDFConvert.com

S-ar putea să vă placă și