在VC++中CommandButton按钮更换背景图片用到SetPicuter,但是数据类型是LPDISPATCH,应该怎样给LPDISPATCH赋值?
CPictureHolder pictHolder;pictHolder.CreateFromBitmap(IDB_BITMAP1); // 位图资源ID
yourCommandButton.SetPicture(pictHolder.GetPictureDispatch());