Hello all,
how do I get the original size of the image contained within a picture control (which has been resized) ?
I thought I could simply do:
SetCtrlAttribute(pnl, ctrl, ATTR_FIT_MODE, VAL_SIZE_TO_IMAGE); GetCtrlAttribute(pnl, ctrl, ATTR_WIDTH, &W); GetCtrlAttribute(pnl, ctrl, ATTR_HEIGHT, &H);
But I still get the size of the control, not the image. Even if I call ProcessDrawEvents in between.