English
Source / code snippets

Create dialog Window Icon Useicon Window allocate

 

CompileMarkSeparation
//Icon 103 aus der shell32.dll zuzuweisen
setClassLongA(hWnd,gcl_hicon,extractIconA(hInstance,shell32.dll,103))
//oder auch Icon per create(hIcon... beziehen:
setClassLongA(hWnd,gcl_hicon,create(hIcon,A))//im Programm besser für deleteObject Iconhandle merken...
//oder Icon per wm_setIcon setzen:
sendMessage(hWnd,wm_setIcon,1,create(hIcon,A))
or.
CompileMarkSeparation
 $H c:p00xwindows.ph
CLS
var H&=%HWND
var MYICON&=CREATE(hIcon,BAUM)
Variante1
~SetClassLongA(H&,-14,MYICON&)
Variante2
SENDMESSAGE(H&,$0080,1,MYICON&)
WAITINPUT
code for simple Selbertesten:
CompileMarkSeparation
 {$cleq}
cls
long 	h=hWnd,
myIcon=create(hIcon,BAUM)
setClassLong(h,gcl_hicon,myIcon)
//sendMessage(h,wm_setIcon,1,myIcon)
waitInput
end
 
02/26/09  
 




Jac
de
Lad
and Why not UseIcon? i think time You refer the on others Window as only %hWnd. Perhaps could UseIcon Yes in the next Profan-Version extended go To UseIcon handle&,iconhandle&.
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
02/27/09  
 



Jac
and Why not UseIcon? i think time You refer the...


I refer it on the Topictitle UseIcon Icon Create Window dialog Window allocate which helpful words contains if one a Source seek.
 
02/27/09  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

5.114 Views

Untitledvor 0 min.
Member 361000511/14/22
Torben Nissen04/28/20
Walter02/01/18
rquindt01/28/17
More...

Themeninformationen

this Topic has 2 subscriber:

iF (2x)
Jac de Lad (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie