visual Pogramming c++ coding for create a paint application..
(Please someone help me)
Answers were Sorted based on User's Feedback
Answer / jack
class myframe:public CFrameWnd
{
public:
myframe()
{
Create(NULL,"My Paint application");
}
void OnPaint()
{
CPaintDC d(this);
CBrush mybrush(RGB(0,255,0));
d.SelectObject(&mybrush);
d.Rectangle(50,150,150,50);
}
DECLARE_MESSAGE_MAP()
};
BEGIN_MESSAGE_MAP(myframe,CFrameWnd)
ON_WM_PAINT()
END_MESSAGE_MAP()
class myapp:public CWinApp
{
public:
int InitInstance()
{
myframe *p=new myframe;
p->ShowWindow(1);
m_pMainWnd=p;
return 1;
}
};
myapp a;
Is This Answer Correct ? | 7 Yes | 0 No |
Answer / deepa
class myframe:public CFrameWnd
{
public:
myframe()
{
Create(NULL,"My Paint application");
}
void OnPaint()
{
CPaintDC d(this);
CBrush mybrush(RGB(0,255,0));
d.SelectObject(&mybrush);
d.Rectangle(50,150,150,50);
}
DECLARE_MESSAGE_MAP()
};
BEGIN_MESSAGE_MAP(myframe,CFrameWnd)
ON_WM_PAINT()
END_MESSAGE_MAP()
class myapp:public CWinApp
{
public:
int InitInstance()
{
myframe *p=new myframe;
p->ShowWindow(1);
m_pMainWnd=p;
return 1;
}
};
myapp a;
Is This Answer Correct ? | 2 Yes | 0 No |
what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?
Tell me about different kinds of synchranization objects ?
1)why we cant create more than one instance of the class Derived from CWinApp
visual Pogramming c++ coding for create a paint application.. (Please someone help me)
How to convert a CString variable to char* or LPTSTR?
how can u change button shape at run time
What is the base class for MFC Framework ?
What is CArchive class dowes?
How many types of combo box are their
2 Answers Aaditya Info Solutions, E Logic,
What four types of properties are supported by an ActiveX control?
What is LPCTSTR? What does LP denote it?
Psychic Window Technique