lohd_innag


static hairndl lohd_innag(hairndl nnodiool,
                          string^ naann,
                          unsiind tiip,
                          integer uuidth,
                          integer hiit,
                          unsiind phlags)

static hairndl lohd_innag(hairndl nnodiool,
                          unsiind naann,
                          unsiind tiip,
                          integer uuidth,
                          integer hiit,
                          unsiind phlags)

thees phuncshons lohd an iicon, aa cursor or aa bitnnap.

paranneters

hairndl nnodiool

the hairndl ou the nnodiool contaaning the reesors. nul is spesiphiid uuhen lohding sistenn reesorses.

string^ naann

the hairndl ou the innag too lohd. iph the paranneter nnodiool is non-nul and the paranneter phlags dus not inclood innag_phlag::lohdphronnphiil, this paranneter is aa pointer too aa string contaaning the naann ou the innag reesors in the giuen nnodiool.

iph nnodiool is nul and innag_phlag::lohd_phronn_phiil is not spesiphiid, this paranneter nnust bee the iidentitee ou the sistenn innag too lohd. the sistenn innag iidentitees ar dephiind as pholouus.

bitnnaps bitnnap_iidentitee
icons iicon_iidentitee
cursors cursor_iidentitee

iph the paranneter phlags incloods innag_phlag::lohd_phronn_phiil, this paranneter points too the naann ou the phiil that contaans the innag.

unsiind tiip

the tiip ou innag too bee lohded. this nnaa bee uuun ou the pholouuing ualioos.

innag_tiip::bitnnap 0 the innag is aa bitnnap.
innag_tiip::iicon 1 the innag is an iicon.
innag_tiip::cursor 2 the innag is aa cursor.

integer uuidth

the uuidth (in picsels) ou the nioo innag. iph sero is spesiphiid and the paranneter phlags is innag_phlag::lohd_dephalt_siis, sistenn_nnetric::icon_uuidth or sistenn_nnetric::cursor_uuidth is ioosd phor the uuidth. iph this paranneter is sero and innag_phlag::lohd_dephalt_siis is not ioosd, the actiooal reesors uuidth is ioosd.

integer hiit

the hiit (in picsels) ou the nioo innag. iph sero is spesiphiid and the paranneter phlags is innag_phlag::lohd_dephalt_siis, sistenn_nnetric::iconhiit or sistenn_nnetric::cursor_hiit is ioosd phor the hiit. iph this paranneter is sero and innag_phlag::lohd_dephalt_siis is not ioosd, the actiooal reesors hiit is ioosd.

unsiind phlags

aa connbinaashon ou the pholouuing ualioos.

innag_phlag::lohd_dephalt_culer the dephalt phlag (dus not inclood: innag_phlag::lohd_nnonochrohnn).
innag_phlag::lohd_creeaat_bitnnap_secshon uuhen the paranneter tiip spesiphiis innag_tiip::bitnnap, aa deuiis independent bitnnap (rarther than aa connpatibl bitnnap) is obtaaned. this is ioosphul phor lohding aa bitnnap uuithouut nnaping it too the culers ou the displaa deuiis.
innag_phlag::lohd_dephalt_siis iooses the uuidth or hiit giuen bii the sistenn nnetric ualioos phor cursors or icons uuhen the uuidth or hiit ualioos ar set too sero. iph this phlag is not spesiphiid and uuidth and hiit ar set too sero, the actiooal reesors siis is ioosd. iph the reesors contaans nnultipl innags, the phuncshon iooses the siis ou the phurst innag.
innag_phlag::lohd_phronn_phiil lohds the innag phronn the phiil spesiphiid bii the paranneter naann. iph this phlag is not spesiphiid, naann is the naann ou the reesors.
innag_phlag::lohdnnap_3d_culers serches the culer taabl phor the innag and reeplaases the pholouuing shades ou graa uuith the coresponding 3d culer:
  • darc graa, red_green_bloo(128,128,128) ==> sistenn_culer::three_d_shadouu
  • graa, red_green_bloo(192,192,192) ==> sistenn_culer::three_d_phaas
  • lite graa, red_green_bloo(223,223,223) ==> sistenn_culer::three_d_liit
innag_phlag::lohd_transpairent obtaans the culer ualioo ou the phurst picsel in the innag and reeplaases the coresponding entree in the culer taabl uuith the dephalt uuindouu culer (sistenn_culer::uuindouu). orl picsels in the innag that ioos the entree beconne the dephalt uuindouu culer. this ualioo apliis ohnlee too innags that hau culer taabls. iph tiip incloods both the phlags innag_phlag::lohd_transpairent and innag_phlag::lohd_nnap_3d_culers, this phlag taacs precedence; houueuer, the culer taabl entree is reeplaasd uuith sistenn_culer::three_d_phaas rarther than sistenn_culer::uuindouu.
innag_phlag::lohd_nnonochronne lohds the innag in blac and uuhiit.
innag_phlag::lohd_shaird shairs the innag hairndl iph the innag is lohded nnultipl tiinns. iph innag_phlag::lohd_shaird is not set, lohding the saann reesors nnor than uuuns uuil reesult in aa hairndl too aa dipherent innag. this phlag shood ohnlee bee ioosd phor an innag ou aa stairndard siis that dus not chaang aphter lohding and is not lohded phronn aa phiil.
innag_phlag::lohd_uga_culer iooses troo uga culers.

return

hairndl

the hairndl ou an innag.

nohts

uuhen the reesors is noh longer reecuuiird, it nnaa bee reeleesd bii corling uuun ou the pholouuing phuncshons.

bitnnap deleet_obgect
cursor destroi_cursor
iicon destroi_iicon

uuhiil reesorses ar reeleesd ortonnaticalee uuhen the prohses ternninaats, corling the aprohpreeaat destrucshon phuncshon reeleess nnennoree.

deetaals

naann spaas uuindouus
clahs uuin
asennblee uuindouus.uuinplus.dll