Click here to Skip to main content
15,902,189 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generallength between two points Pin
mr200324-May-01 9:01
mr200324-May-01 9:01 
GeneralRe: length between two points Pin
Christian Graus24-May-01 13:08
protectorChristian Graus24-May-01 13:08 
Generallength between two points Pin
mr200324-May-01 9:00
mr200324-May-01 9:00 
GeneralRe: length between two points Pin
Tomasz Sowinski24-May-01 9:04
Tomasz Sowinski24-May-01 9:04 
GeneralCRC-Checksum to check whether file has been modified Pin
24-May-01 8:55
suss24-May-01 8:55 
QuestionWhy my program cannot show colour? Pin
Richard Cheng24-May-01 7:24
Richard Cheng24-May-01 7:24 
AnswerRe: Why my program cannot show colour? Pin
Tomasz Sowinski24-May-01 8:24
Tomasz Sowinski24-May-01 8:24 
GeneralRe: Why my program cannot show colour? Pin
Richard Cheng24-May-01 10:39
Richard Cheng24-May-01 10:39 
My program doesn't have CreatCompatibleBitmap...something liked that.....i just have in OnDraw(CDC* pDC):

if(CDCPoint==NULL)
{
CDCPoint=new CDC;
}
CDCPoint->m_hDC=pDC->m_hDC;
CDCPoint->m_hAttribDC=pDC->m_hAttribDC;

//creating a global window handler to help with output
Handler=m_hWnd;

//setting background mode so there wouldn't be a border around text (just in case)
pDC->SetBkMode(TRANSPARENT);

//setting fixed width font
CFont newFont;
newFont.CreateFont(18, 9, 0, 0, FW_REGULAR, 0, 0, 0, ANSI_CHARSET, OUT_DEVICE_PRECIS, CLIP_CHARACTER_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_MODERN, "Courier New");
pDC->SelectObject(&newFont);

Also, I found that there is another problem........normally the output font is Courier New....but suddently....all fonts change to another one....including all message box.

Thanks for your help anyway...
Smile | :) Smile | :)
GeneralRe: Why my program cannot show colour? Pin
Tomasz Sowinski24-May-01 10:44
Tomasz Sowinski24-May-01 10:44 
GeneralRe: Why my program cannot show colour? Pin
Richard Cheng24-May-01 10:53
Richard Cheng24-May-01 10:53 
GeneralRe: Why my program cannot show colour? Pin
Tomasz Sowinski24-May-01 10:58
Tomasz Sowinski24-May-01 10:58 
GeneralInstaller...loking for advise Pin
Amit Dey24-May-01 6:49
Amit Dey24-May-01 6:49 
GeneralRe: Installer...loking for advise Pin
24-May-01 6:58
suss24-May-01 6:58 
GeneralRange of Pixel intensity Pin
mr200324-May-01 5:57
mr200324-May-01 5:57 
GeneralRe: Range of Pixel intensity Pin
NormDroid24-May-01 6:37
professionalNormDroid24-May-01 6:37 
GeneralCWnd quiz Pin
24-May-01 5:47
suss24-May-01 5:47 
GeneralRe: CWnd quiz Pin
24-May-01 5:58
suss24-May-01 5:58 
GeneralRe: CWnd quiz Pin
NormDroid24-May-01 6:40
professionalNormDroid24-May-01 6:40 
GeneralDialog background Pin
24-May-01 4:42
suss24-May-01 4:42 
GeneralRe: Dialog background Pin
George Chastain24-May-01 5:12
George Chastain24-May-01 5:12 
GeneralVisual Studio slowness Pin
Bryan Pietrzak24-May-01 4:36
Bryan Pietrzak24-May-01 4:36 
GeneralRe: Visual Studio slowness Pin
24-May-01 5:06
suss24-May-01 5:06 
GeneralRe: Visual Studio slowness Pin
Bryan Pietrzak24-May-01 5:46
Bryan Pietrzak24-May-01 5:46 
GeneralDialogs and Bitmaps Pin
24-May-01 4:17
suss24-May-01 4:17 
GeneralRe: Dialogs and Bitmaps Pin
George Chastain24-May-01 5:18
George Chastain24-May-01 5:18 

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.