- the GetWindowRect() give me the window size and position;
- the GetClientRect() give me the window size without inclued the scrollbars\menus\borders\others;
so when 1 image is more big than client size, what size i can use? DC size?
and if a child window position is more big than client size??? what size do i need? the DC size do the job?
cambalinho
125
Practically a Posting Shark
Recommended Answers
Jump to PostWhich size to use depends on what you want to use that size for, and I am not clear what you are trying to do. Can you give some more detail?
Also note that a DC (Device Context) doesn't really have a size. It is an infinite plane for you …
Jump to PostI don't have an answer to this but I believe the OP means if the content of a window holds an image or multiple images or some other content which is bigger than the physical window size (so I'd assume it would have scroll bars), then the size of the …
Jump to PostOh, OK. In that case I don't really know any answer either. I don't know of any API call to find out the total size of the "occupied" area of the DC. This makes sense because there is no guarrantee that Windows knows anything about data that falls outside of …
All 11 Replies
SalmiSoft
102
Junior Poster
Suzie999
245
Coding Hobbyist
cambalinho
commented:
thanks for correct my english too
+2
SalmiSoft
102
Junior Poster
cambalinho
125
Practically a Posting Shark
Suzie999
245
Coding Hobbyist
cambalinho
125
Practically a Posting Shark
Suzie999
245
Coding Hobbyist
cambalinho
125
Practically a Posting Shark
triumphost
120
Posting Whiz
SalmiSoft
102
Junior Poster
cambalinho
125
Practically a Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.