Click here to Skip to main content
16,005,467 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Sending E-Mail Pin
El'Cachubrey14-Jul-03 19:41
El'Cachubrey14-Jul-03 19:41 
QuestionWhy SetLayeredWindowAttributes() makes a window's Z-order higher? Pin
isavegod14-Jul-03 18:16
isavegod14-Jul-03 18:16 
Generalfile system api hook/file system driver Pin
anshumanshinde14-Jul-03 18:02
anshumanshinde14-Jul-03 18:02 
GeneralRe: file system api hook/file system driver Pin
Mike Nordell14-Jul-03 20:45
Mike Nordell14-Jul-03 20:45 
GeneralRe: file system api hook/file system driver Pin
anshumanshinde14-Jul-03 21:04
anshumanshinde14-Jul-03 21:04 
GeneralRe: file system api hook/file system driver Pin
Anthony_Yio15-Jul-03 0:49
Anthony_Yio15-Jul-03 0:49 
GeneralRe: file system api hook/file system driver Pin
Mike Nordell15-Jul-03 5:22
Mike Nordell15-Jul-03 5:22 
Generalrect on top of the Text Pin
spicy_kid200014-Jul-03 17:35
spicy_kid200014-Jul-03 17:35 
hi ,

am trying to Draw a rect on top of the text. It is not working . pls see the code

CFont font;
CSize sz;
CBrush gBrush = RGB(10,255,10);
CBrush bBrush = RGB(0,0,0);


CString str=_T("HELLO WORLD");

VERIFY(font.CreateFont(
25, // nHeight
0, // nWidth
0, // nEscapement
0, // nOrientation
FW_NORMAL, // nWeight
FALSE, // bItalic
FALSE, // bUnderline
0, // cStrikeOut
ANSI_CHARSET, // nCharSet
OUT_DEFAULT_PRECIS, // nOutPrecision
CLIP_DEFAULT_PRECIS, // nClipPrecision
DEFAULT_QUALITY, // nQuality
DEFAULT_PITCH | FF_SWISS, // nPitchAndFamily
"Arial Narrow")); // lpszFacename

pDC ->SelectObject(font);
pDC->SelectObject(bBrush);

pDC->TextOut(5, 5, str);

pDC->SelectObject(gBrush);

sz = pDC->GetTextExtent(str);
pDC->Rectangle(5,5,sz.cx+5,sz.cy+5);
GeneralRe: rect on top of the Text Pin
Dave Bryant14-Jul-03 17:46
Dave Bryant14-Jul-03 17:46 
Generalnot working Pin
spicy_kid200014-Jul-03 17:54
spicy_kid200014-Jul-03 17:54 
GeneralRe: not working Pin
Dave Bryant14-Jul-03 18:02
Dave Bryant14-Jul-03 18:02 
GeneralRe: rect on top of the Text Pin
PJ Arends14-Jul-03 18:01
professionalPJ Arends14-Jul-03 18:01 
GeneralRe: rect on top of the Text Pin
PJ Arends14-Jul-03 18:09
professionalPJ Arends14-Jul-03 18:09 
GeneralRe: rect on top of the Text Pin
spicy_kid200014-Jul-03 18:18
spicy_kid200014-Jul-03 18:18 
GeneralRe: rect on top of the Text Pin
PJ Arends14-Jul-03 18:30
professionalPJ Arends14-Jul-03 18:30 
QuestionInline Assembler Macros? Pin
Aidman14-Jul-03 16:37
Aidman14-Jul-03 16:37 
AnswerRe: Inline Assembler Macros? Pin
PJ Arends14-Jul-03 17:39
professionalPJ Arends14-Jul-03 17:39 
GeneralRe: Inline Assembler Macros? Pin
Aidman14-Jul-03 22:36
Aidman14-Jul-03 22:36 
AnswerRe: Inline Assembler Macros? Pin
Toni7814-Jul-03 19:22
Toni7814-Jul-03 19:22 
GeneralRe: Inline Assembler Macros? Pin
Aidman14-Jul-03 22:56
Aidman14-Jul-03 22:56 
GeneralRe: Inline Assembler Macros? Pin
Toni7814-Jul-03 23:39
Toni7814-Jul-03 23:39 
GeneralRe: Inline Assembler Macros? Pin
Ryan Binns14-Jul-03 23:18
Ryan Binns14-Jul-03 23:18 
GeneralRe: Inline Assembler Macros? Pin
Toni7814-Jul-03 23:36
Toni7814-Jul-03 23:36 
GeneralRe: Inline Assembler Macros? Pin
Ryan Binns15-Jul-03 0:48
Ryan Binns15-Jul-03 0:48 
AnswerRe: Inline Assembler Macros? Pin
TheSurrealist15-Jul-03 0:00
TheSurrealist15-Jul-03 0:00 

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.