Click here to Skip to main content
15,879,095 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to redefine HEX symbols Pin
tbrake3-Jun-06 7:56
tbrake3-Jun-06 7:56 
AnswerRe: How to redefine HEX symbols Pin
bob169723-Jun-06 8:47
bob169723-Jun-06 8:47 
GeneralRe: How to redefine HEX symbols Pin
tbrake3-Jun-06 8:57
tbrake3-Jun-06 8:57 
GeneralRe: How to redefine HEX symbols Pin
bob169723-Jun-06 9:24
bob169723-Jun-06 9:24 
GeneralRe: How to redefine HEX symbols Pin
bob169723-Jun-06 9:38
bob169723-Jun-06 9:38 
GeneralRe: How to redefine HEX symbols Pin
tbrake3-Jun-06 10:07
tbrake3-Jun-06 10:07 
QuestionPolygon and FrameRgn Pin
includeh103-Jun-06 7:00
includeh103-Jun-06 7:00 
AnswerRe: Polygon and FrameRgn Pin
bob169723-Jun-06 8:13
bob169723-Jun-06 8:13 
Here's some code to get the wheels turning. I used a couple of different things and meshed them together.

For what it's worth...

CPen pen;
CPen* pOldPen;

LOGBRUSH logBrush;
logBrush.lbStyle=BS_SOLID;
logBrush.lbColor=RGB(255,0,0);
logBrush.lbHatch=NULL;

if (pDC->BeginPath()) { // Start defining Path

CRect rect(0,0,150,150);
pDC->Rectangle(&rect); // Define the shape for the path

if (pDC->EndPath()) { // Finish defining path

CRgn rgn;
rgn.CreateFromPath(pDC);

if (pDC->SelectClipRgn(&rgn,RGN_COPY)) { // New clipping region

for (int i=0;i<150;i+=15) {
pen.CreatePen(PS_SOLID|PS_ENDCAP_SQUARE|PS_GEOMETRIC,(i/15),&logBrush,0,NULL);
pOldPen=pDC->SelectObject(&pen);
pDC->MoveTo(CPoint(i,150));
pDC->LineTo(CPoint(i+150,0));
pDC->SelectObject(pOldPen);
pen.DeleteObject();
}
}
}
}
GeneralRe: Polygon and FrameRgn Pin
includeh103-Jun-06 9:34
includeh103-Jun-06 9:34 
GeneralRe: Polygon and FrameRgn Pin
bob169723-Jun-06 9:46
bob169723-Jun-06 9:46 
Question_bstr_t to string-newbie Pin
antonaras3-Jun-06 4:50
antonaras3-Jun-06 4:50 
AnswerRe: _bstr_t to string-newbie Pin
John R. Shaw3-Jun-06 5:01
John R. Shaw3-Jun-06 5:01 
AnswerRe: _bstr_t to string-newbie Pin
Michael Dunn3-Jun-06 5:46
sitebuilderMichael Dunn3-Jun-06 5:46 
GeneralRe: _bstr_t to string-newbie Pin
antonaras3-Jun-06 7:12
antonaras3-Jun-06 7:12 
AnswerRe: _bstr_t to string-newbie Pin
bob169723-Jun-06 6:37
bob169723-Jun-06 6:37 
GeneralRe: _bstr_t to string-newbie Pin
antonaras3-Jun-06 7:15
antonaras3-Jun-06 7:15 
AnswerRe: _bstr_t to string-newbie Pin
ThatsAlok4-Jun-06 23:06
ThatsAlok4-Jun-06 23:06 
Questionshort question about parsing xml in C++ [modified] Pin
Rudy1023-Jun-06 4:24
Rudy1023-Jun-06 4:24 
AnswerRe: short question about parsing xml in C++ [modified] Pin
Hamid_RT3-Jun-06 4:46
Hamid_RT3-Jun-06 4:46 
AnswerRe: short question about parsing xml in C++ [modified] Pin
Nemanja Trifunovic3-Jun-06 5:57
Nemanja Trifunovic3-Jun-06 5:57 
AnswerRe: short question about parsing xml in C++ [modified] Pin
Ravi Bhavnani3-Jun-06 7:12
professionalRavi Bhavnani3-Jun-06 7:12 
Questiondoubt in vc++ Pin
Javagal Srinath3-Jun-06 3:17
Javagal Srinath3-Jun-06 3:17 
AnswerRe: doubt in vc++ Pin
John R. Shaw3-Jun-06 4:57
John R. Shaw3-Jun-06 4:57 
AnswerRe: doubt in vc++ Pin
Gary R. Wheeler3-Jun-06 15:16
Gary R. Wheeler3-Jun-06 15:16 
QuestionEllipse, how to draw without been filled? Pin
includeh103-Jun-06 3:10
includeh103-Jun-06 3:10 

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.