Click here to Skip to main content
16,011,578 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Design Patterns Pin
geekfromindia18-Jan-08 4:40
geekfromindia18-Jan-08 4:40 
GeneralRe: Design Patterns Pin
CPallini18-Jan-08 4:45
mveCPallini18-Jan-08 4:45 
GeneralRe: Design Patterns Pin
geekfromindia18-Jan-08 4:58
geekfromindia18-Jan-08 4:58 
GeneralRe: Design Patterns Pin
CPallini18-Jan-08 5:50
mveCPallini18-Jan-08 5:50 
GeneralRe: Design Patterns Pin
geekfromindia18-Jan-08 6:25
geekfromindia18-Jan-08 6:25 
GeneralRe: Design Patterns Pin
geekfromindia18-Jan-08 6:33
geekfromindia18-Jan-08 6:33 
GeneralFillRect with a pattern brush, offset problem Pin
followait18-Jan-08 3:44
followait18-Jan-08 3:44 
GeneralRe: FillRect with a pattern brush, offset problem Pin
bob1697218-Jan-08 4:02
bob1697218-Jan-08 4:02 
From "Programming Windows with MFC, Second Edition" (Jeff Prosise).
Adapt the sample as you need for your code.

// Always set the same relative starting point for hatched brushes
CPoint point(x1,y1);
dc.LPtoDP(&point);

// Modulo of 8 since values should be 0 thru 7
point.x%=8;
point.y%=8;

brush.UnrealizeObject();
dc.SetBrushOrg(point);
dc.SelectObject(&brush);
dc.Rectangle(x1,y1,x2,y2);
GeneralRe: FillRect with a pattern brush, offset problem Pin
followait18-Jan-08 4:17
followait18-Jan-08 4:17 
GeneralRe: FillRect with a pattern brush, offset problem Pin
bob1697218-Jan-08 5:18
bob1697218-Jan-08 5:18 
GeneralRe: FillRect with a pattern brush, offset problem Pin
bob1697218-Jan-08 5:36
bob1697218-Jan-08 5:36 
Generalproblem in CDialog Pin
Abhijit A18-Jan-08 2:39
Abhijit A18-Jan-08 2:39 
QuestionRe: problem in CDialog Pin
David Crow18-Jan-08 3:17
David Crow18-Jan-08 3:17 
GeneralRe: problem in CDialog Pin
Abhijit A18-Jan-08 3:25
Abhijit A18-Jan-08 3:25 
QuestionRe: problem in CDialog Pin
David Crow18-Jan-08 3:29
David Crow18-Jan-08 3:29 
GeneralRe: problem in CDialog Pin
Abhijit A18-Jan-08 4:02
Abhijit A18-Jan-08 4:02 
QuestionDrawing from different threads in OpenGL Pin
RichardS18-Jan-08 1:57
RichardS18-Jan-08 1:57 
GeneralRe: Drawing from different threads in OpenGL Pin
Dexterus18-Jan-08 3:36
Dexterus18-Jan-08 3:36 
GeneralExporting a variable an enum and a class to VB ! Pin
CrocodileBuck18-Jan-08 1:09
CrocodileBuck18-Jan-08 1:09 
GeneralRe: Exporting a variable an enum and a class to VB ! Pin
CPallini18-Jan-08 2:25
mveCPallini18-Jan-08 2:25 
QuestionDataexport from CListCtrl to lokal file? Pin
bosfan18-Jan-08 1:02
bosfan18-Jan-08 1:02 
AnswerRe: Dataexport from CListCtrl to lokal file? Pin
Cedric Moonen18-Jan-08 2:00
Cedric Moonen18-Jan-08 2:00 
GeneralRe: Dataexport from CListCtrl to lokal file? Pin
bosfan18-Jan-08 2:20
bosfan18-Jan-08 2:20 
GeneralRe: Dataexport from CListCtrl to lokal file? Pin
Cedric Moonen18-Jan-08 2:50
Cedric Moonen18-Jan-08 2:50 
AnswerRe: Dataexport from CListCtrl to lokal file? Pin
Hamid_RT18-Jan-08 19:17
Hamid_RT18-Jan-08 19:17 

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.