Click here to Skip to main content
15,910,471 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralLoading resouce from .dll Pin
nareshn225-Mar-04 0:38
nareshn225-Mar-04 0:38 
GeneralRequest for advice on design of complex dialog Pin
iknowindigo25-Mar-04 0:01
iknowindigo25-Mar-04 0:01 
GeneralIdentifying controls in CDialog Pin
JonWayne24-Mar-04 23:44
JonWayne24-Mar-04 23:44 
GeneralRe: Identifying controls in CDialog Pin
JonWayne24-Mar-04 23:59
JonWayne24-Mar-04 23:59 
GeneralRe: Identifying controls in CDialog Pin
toxcct25-Mar-04 1:44
toxcct25-Mar-04 1:44 
GeneralRe: Identifying controls in CDialog Pin
David Crow25-Mar-04 2:33
David Crow25-Mar-04 2:33 
GeneralLoad Resource's Bitmap To HBITMAP Pin
akirachen24-Mar-04 23:42
akirachen24-Mar-04 23:42 
GeneralCHtmlView inside SDI App. - Painting the Mainframe Pin
AssemblySoft24-Mar-04 22:28
AssemblySoft24-Mar-04 22:28 
I have an app using the CHtmlView to drive the user inteface.
I have a web page black.html, which is exactly that, a plain black page.
I have maximized the mainframe window but there is a 'very' thin white border around the 'right' and 'bottom' of the page. - How do i set this to black?

This is not an issue with margins etc in the web page. If i view the page in IE, the border disappears. It seems to be the Mainframe border.


I have tried:
Overriding OnEraseBkGround - for both CHtmlView + MainFrame


CBrush backBrush(RGB(0,0,0));

// Save old brush
CBrush* pOldBrush = pDC->SelectObject(&backBrush);

CRect rect;
pDC->GetClipBox(&rect); // Erase the area needed

pDC->PatBlt(rect.left, rect.top, rect.Width(), rect.Height(),
PATCOPY);
pDC->SelectObject(pOldBrush);



I still can't get rid of the thin white border - please help

Carl

GeneralPaste CF_METAFILEPICT in a rtf dialog box app Pin
Filomela24-Mar-04 21:57
Filomela24-Mar-04 21:57 
GeneralConversion... Pin
Anonymous24-Mar-04 21:51
Anonymous24-Mar-04 21:51 
GeneralRe: Conversion... Pin
Steve S24-Mar-04 22:05
Steve S24-Mar-04 22:05 
GeneralRe: Conversion... Pin
wb24-Mar-04 22:17
wb24-Mar-04 22:17 
GeneralRe: Conversion... Pin
Anonymous25-Mar-04 0:57
Anonymous25-Mar-04 0:57 
GeneralRe: Conversion... Pin
ravjak25-Mar-04 6:47
ravjak25-Mar-04 6:47 
GeneralProblem with COleDateTime Pin
PravinSingh24-Mar-04 21:40
PravinSingh24-Mar-04 21:40 
GeneralRe: Problem with COleDateTime Pin
Cedric Moonen24-Mar-04 21:48
Cedric Moonen24-Mar-04 21:48 
GeneralRe: Problem with COleDateTime Pin
David Crow25-Mar-04 2:41
David Crow25-Mar-04 2:41 
GeneralEnums Pin
monrobot1324-Mar-04 21:22
monrobot1324-Mar-04 21:22 
GeneralRe: Enums Pin
Anonymous24-Mar-04 21:32
Anonymous24-Mar-04 21:32 
GeneralRe: Enums Pin
Maxwell Chen24-Mar-04 21:52
Maxwell Chen24-Mar-04 21:52 
GeneralRe: Enums Pin
David Crow25-Mar-04 2:48
David Crow25-Mar-04 2:48 
GeneralRe: Enums Pin
monrobot1325-Mar-04 18:33
monrobot1325-Mar-04 18:33 
Generalimproving a hack Pin
axid3j1al24-Mar-04 20:25
axid3j1al24-Mar-04 20:25 
QuestionHow to popup the application-menu ? Pin
ohadp24-Mar-04 20:16
ohadp24-Mar-04 20:16 
GeneralError in calling DLL Pin
dafan24-Mar-04 19:14
dafan24-Mar-04 19:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.