i write override function onpaint() in own dialog, don't know how pass parameters function, it's called automatic. , wanna know used picturecontrol in dialog, , load picture file disk using own function( bitmapshow(uint ctrlid, cstring filepath) ), should write code of loading picture in override function onpaint()? or copy code segment onpaint()?
you can not change definition of onpaint function. called in response automatic wm_paint message. can, , should, store additional information needed onpaint function member variables, not parameters.
to paint picture on picture control should override onpaint of picture control, not dialog. done in class derive cstatic.