visual studio 2010 - Implementing a dialog background image -


using c++ under visual studio 2010.

i have dialog creation section

idd_logon dialogex 0, 0, 265, 70 style ds_setfont | ds_modalframe | ds_fixedsys | ws_popup | ws_caption caption "log on windows" font 8, "ms shell dlg", 400, 0, 0x1 begin    edittext        idc_name,61,9,127,14,es_autoscroll   edittext        idc_password,61,29,127,14,es_password | es_autoscroll   edittext        idc_domain,61,49,127,14,es_autoscroll   defpushbutton   "ok",idok,204,8,50,14   pushbutton      "cancel",idcancel,204,25,50,14   ltext           "domain:",idc_static,21,52,27,8   ltext           "password:",idc_static,21,32,34,8   ltext           "user name:",idc_static,17,12,38,8   pushbutton      "shutdown",idc_shutdown,204,49,50,14 end 

i have image in background of dialog.

how go performing action?

thank you

in oninitdialog() use:

this->setbackgroundimage(idb_bitmap1, backgr_topleft, true); 

for more info refer : cdialogex::setbackgroundimage


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -