Click here to Skip to main content
16,006,535 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Hex String to Decimal long Pin
Chris Hafey23-Feb-02 7:50
Chris Hafey23-Feb-02 7:50 
GeneralRe: Hex String to Decimal long Pin
soup23-Feb-02 14:11
soup23-Feb-02 14:11 
QuestionHow create a pie or chord region Pin
wangyiming22-Feb-02 23:50
wangyiming22-Feb-02 23:50 
AnswerRe: How create a pie or chord region Pin
Paul M Watt23-Feb-02 10:03
mentorPaul M Watt23-Feb-02 10:03 
Generalnothing appear! Pin
Mazdak22-Feb-02 23:04
Mazdak22-Feb-02 23:04 
GeneralRe: nothing appear! Pin
Joaquín M López Muñoz22-Feb-02 23:07
Joaquín M López Muñoz22-Feb-02 23:07 
GeneralRe: nothing appear! Pin
Mazdak22-Feb-02 23:27
Mazdak22-Feb-02 23:27 
GeneralRe: nothing appear! Pin
Steen Krogsgaard22-Feb-02 23:22
Steen Krogsgaard22-Feb-02 23:22 
You get the paintDC twice in the same WM_PAINT message, afai remember that's not allowed and the second one won't work. If you passed the dc as a parameter to CMyView::paintrect instaed I bet it would work.

void CMysView::OnPaint()
{	
   CPaintDC dc(this); // device context for painting	
   paintrect(dc)
}


int CMyView::paintrect(CDC& dc)
{	
   RECT rctA;	
   rctA.left = 20;  	
   rctA.top = 30;  	
   rctA.right  = 180;  	
   rctA.bottom = 230;	
   dc.Rectangle(&rctA);	
   return 0;
}


Cheers
Steen.

"To claim that computer games influence children is rediculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
GeneralRe: nothing appear! Pin
Mazdak22-Feb-02 23:25
Mazdak22-Feb-02 23:25 
GeneralRe: nothing appear! Pin
Mazdak23-Feb-02 0:02
Mazdak23-Feb-02 0:02 
GeneralRe: nothing appear! Pin
Tim Deveaux23-Feb-02 4:39
Tim Deveaux23-Feb-02 4:39 
GeneralRe: nothing appear! Pin
Steen Krogsgaard24-Feb-02 0:54
Steen Krogsgaard24-Feb-02 0:54 
GeneralRe: nothing appear! Pin
Steen Krogsgaard24-Feb-02 0:56
Steen Krogsgaard24-Feb-02 0:56 
GeneralRe: nothing appear! Pin
Paul M Watt23-Feb-02 10:34
mentorPaul M Watt23-Feb-02 10:34 
QuestionHow to load icon resource into hBitmap ? Pin
22-Feb-02 22:53
suss22-Feb-02 22:53 
AnswerRe: How to load icon resource into hBitmap ? Pin
Joaquín M López Muñoz22-Feb-02 23:15
Joaquín M López Muñoz22-Feb-02 23:15 
GeneralRe: How to load icon resource into hBitmap ? Pin
23-Feb-02 3:18
suss23-Feb-02 3:18 
QuestionHow to get the export table of a given module Pin
22-Feb-02 22:52
suss22-Feb-02 22:52 
AnswerRe: How to get the export table of a given module Pin
Paul M Watt23-Feb-02 6:58
mentorPaul M Watt23-Feb-02 6:58 
GeneralGlobal variable in MFC Pin
22-Feb-02 21:52
suss22-Feb-02 21:52 
GeneralRe: Global variable in MFC Pin
Paul M Watt22-Feb-02 22:06
mentorPaul M Watt22-Feb-02 22:06 
GeneralRe: Global variable in MFC Pin
Nish Nishant22-Feb-02 22:22
sitebuilderNish Nishant22-Feb-02 22:22 
GeneralRe: Global variable in MFC Pin
23-Feb-02 0:10
suss23-Feb-02 0:10 
GeneralOnPaint Handling... Pin
John Cruz22-Feb-02 18:30
John Cruz22-Feb-02 18:30 
GeneralRe: OnPaint Handling... Pin
Paul M Watt22-Feb-02 22:15
mentorPaul M Watt22-Feb-02 22:15 

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.