Click here to Skip to main content
13,090,267 members (90,589 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I have designed a SDI application to display a bitmap image(1024x768). In the bottom and right sides of the displayed bitmap image there is a row and column of white pixels which are not there in the original bitmap image(I have checked this in paint). I have no clue where it is coming from. To be complete, the image is displayed in a view object derived from CSrollview.
The scroll size is set as:
void CCreateGratingsView::OnInitialUpdate()
    SetScrollSizes (MM_TEXT, sizeTotal);

Please help. Thanks in advance,
Posted 18-Feb-13 0:23am
Chris Reynolds (UK) 18-Feb-13 8:32am
I've no idea but it isn't something daft where a rectangle is sized have a top left of (0,0) and a bottom right of (1024, 768) rather than a width of 1024 and height of 768 as the former would give you a bonus pixel. Without more of your code it is difficult to tell, but that sort of thing has caught me before.
Manfred R. Bihy 18-Feb-13 10:23am
That's what I just thought too. If it is exactly one row and one column then it sounds like the usual off by one error here! :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.170813.1 | Last Updated 18 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100