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

C / C++ / MFC

 
AnswerRe: Resource ID for standard "drop" cursor? Pin
Henry Jacobs22-Feb-02 12:58
Henry Jacobs22-Feb-02 12:58 
GeneralAnother MFC Doc/View Question Pin
Aaron Schaefer22-Feb-02 11:22
Aaron Schaefer22-Feb-02 11:22 
GeneralRe: Another MFC Doc/View Question Pin
Michael Dunn22-Feb-02 13:11
sitebuilderMichael Dunn22-Feb-02 13:11 
GeneralMoving objects in GDI+ Pin
Mazdak22-Feb-02 10:57
Mazdak22-Feb-02 10:57 
GeneralRe: Moving objects in GDI+ Pin
Nish Nishant22-Feb-02 11:10
sitebuilderNish Nishant22-Feb-02 11:10 
GeneralRe: Moving objects in GDI+ Pin
Mazdak22-Feb-02 11:42
Mazdak22-Feb-02 11:42 
GeneralRe: Moving objects in GDI+ Pin
Mazdak22-Feb-02 11:55
Mazdak22-Feb-02 11:55 
GeneralRe: Moving objects in GDI+ Pin
Christian Graus22-Feb-02 21:35
protectorChristian Graus22-Feb-02 21:35 
Mazdak wrote:
First,Can you tell me how can I fill rectangle .

FillSolidRect, or ExtFloodFill if the rect is already there and you don't know it's bounds.

Mazdak wrote:
Second:I have to draw it out of OnPaint or OnDraw cause I want to only update my rectangle,when I put this code out of OnPaint or OnDraw nothing appear in the view,what is wrong with that?

CPaintDC dc(this);
dc.Rectangle(56,45,30,10);


That draws the outline of a rectangle, but it takes two sets of co-ordinates, not a left, top, width, height. Your second set of co-ordinates needs to be bigger than your first.


Christian

The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
GeneralMFC:: CString & Serialize ::C++ Pin
valikac22-Feb-02 10:33
valikac22-Feb-02 10:33 
GeneralRe: MFC:: CString & Serialize ::C++ Pin
David Fedolfi22-Feb-02 10:54
David Fedolfi22-Feb-02 10:54 
GeneralRe: MFC:: CString & Serialize ::C++ Pin
Michael Dunn22-Feb-02 13:16
sitebuilderMichael Dunn22-Feb-02 13:16 
GeneralRe: MFC:: CString & Serialize ::C++ Pin
valikac22-Feb-02 16:50
valikac22-Feb-02 16:50 
GeneralDrawing Tools Pin
Flatline22-Feb-02 10:12
Flatline22-Feb-02 10:12 
GeneralRe: Drawing Tools Pin
Mazdak22-Feb-02 10:17
Mazdak22-Feb-02 10:17 
GeneralRe: Drawing Tools Pin
Christian Graus22-Feb-02 21:40
protectorChristian Graus22-Feb-02 21:40 
GeneralRe: Drawing Tools Pin
Flatline25-Feb-02 20:32
Flatline25-Feb-02 20:32 
GeneralRe: Drawing Tools Pin
Christian Graus26-Feb-02 10:49
protectorChristian Graus26-Feb-02 10:49 
GeneralRe: Drawing Tools Pin
Flatline1-Mar-02 9:37
Flatline1-Mar-02 9:37 
GeneralATL based spash screen Pin
koteswara22-Feb-02 9:45
koteswara22-Feb-02 9:45 
GeneralRe: ATL based spash screen Pin
Paul M Watt22-Feb-02 18:15
mentorPaul M Watt22-Feb-02 18:15 
QuestionHow do u use AfxGetMainWnd & GetDC Pin
John Cruz22-Feb-02 9:42
John Cruz22-Feb-02 9:42 
AnswerRe: How do u use AfxGetMainWnd & GetDC Pin
Tim Smith22-Feb-02 9:46
Tim Smith22-Feb-02 9:46 
GeneralRe: How do u use AfxGetMainWnd & GetDC Pin
John Cruz22-Feb-02 10:02
John Cruz22-Feb-02 10:02 
GeneralRe: How do u use AfxGetMainWnd & GetDC Pin
John Cruz22-Feb-02 10:07
John Cruz22-Feb-02 10:07 
GeneralRe: How do u use AfxGetMainWnd & GetDC Pin
Nish Nishant22-Feb-02 10:04
sitebuilderNish Nishant22-Feb-02 10:04 

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.