i have read about scroll functions, but now i have 1 question:
- if the WM_SIZE message\GetClientRect() function can give the client size and the GetWindowRect() give me the window size, how can i get the DC size?
what i mean is:
- imagine that you put an image on DC and now you want put some shapes after image size, how can i get the DC size now?
- imagine that i put 1 control after client size, how can i get the DC size?
- imagine that i edit a document, like adding new text, how can i get the new size?
I think you want the dimensions of the bitmap selected in the DC. The DC itself has no dimensions. Look up the GetCurrentObject() and GetObject() functions. These should return the current bitmap and info about it, including dimensions.