Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ADO Problem Pin
Hamid_RT26-Feb-09 5:45
Hamid_RT26-Feb-09 5:45 
AnswerRe: ADO Problem Pin
David Crow26-Feb-09 3:05
David Crow26-Feb-09 3:05 
QuestionNeed help on drawing a line Pin
John50225-Feb-09 19:44
John50225-Feb-09 19:44 
AnswerRe: Need help on drawing a line Pin
«_Superman_»25-Feb-09 20:36
professional«_Superman_»25-Feb-09 20:36 
GeneralRe: Need help on drawing a line Pin
John50225-Feb-09 22:19
John50225-Feb-09 22:19 
AnswerRe: Need help on drawing a line Pin
Hamid_RT25-Feb-09 20:50
Hamid_RT25-Feb-09 20:50 
GeneralRe: Need help on drawing a line Pin
John50225-Feb-09 22:19
John50225-Feb-09 22:19 
GeneralRe: Need help on drawing a line Pin
Hamid_RT26-Feb-09 5:53
Hamid_RT26-Feb-09 5:53 
Does your code like this?
void CTestDlg::OnPaint()
{
if (IsIconic())
{
CPaintDC dc(this); // device context for painting

SendMessage(WM_ICONERASEBKGND, reinterpret_cast<wparam>(dc.GetSafeHdc()), 0);

// Center icon in client rectangle
int cxIcon = GetSystemMetrics(SM_CXICON);
int cyIcon = GetSystemMetrics(SM_CYICON);
CRect rect;
GetClientRect(&rect);
int x = (rect.Width() - cxIcon + 1) / 2;
int y = (rect.Height() - cyIcon + 1) / 2;

// Draw the icon
dc.DrawIcon(x, y, m_hIcon);
}
else
{
CPaintDC dc(this); // device context for painting

dc.SetROP2(R2_NOTXORPEN);
dc.MoveTo(100,100);
dc.LineTo(100,200);
dc.MoveTo(200,205);
dc.LineTo(200,305);

CDialog::OnPaint();

}
}

Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )

GeneralRe: Need help on drawing a line Pin
John50227-Feb-09 0:00
John50227-Feb-09 0:00 
GeneralRe: Need help on drawing a line Pin
Hamid_RT27-Feb-09 3:50
Hamid_RT27-Feb-09 3:50 
AnswerRe: Need help on drawing a line Pin
_AnsHUMAN_ 25-Feb-09 21:23
_AnsHUMAN_ 25-Feb-09 21:23 
GeneralRe: Need help on drawing a line Pin
John50225-Feb-09 22:21
John50225-Feb-09 22:21 
GeneralRe: Need help on drawing a line Pin
_AnsHUMAN_ 25-Feb-09 22:26
_AnsHUMAN_ 25-Feb-09 22:26 
GeneralRe: Need help on drawing a line Pin
John50225-Feb-09 22:41
John50225-Feb-09 22:41 
AnswerRe: Need help on drawing a line Pin
CPallini25-Feb-09 21:41
mveCPallini25-Feb-09 21:41 
Questiondelete a line from file. Pin
sam_psycho25-Feb-09 18:52
sam_psycho25-Feb-09 18:52 
AnswerRe: delete a line from file. Pin
«_Superman_»25-Feb-09 18:55
professional«_Superman_»25-Feb-09 18:55 
GeneralRe: delete a line from file. Pin
User 268325825-Feb-09 19:36
User 268325825-Feb-09 19:36 
GeneralRe: delete a line from file. Pin
Iain Clarke, Warrior Programmer25-Feb-09 22:02
Iain Clarke, Warrior Programmer25-Feb-09 22:02 
GeneralRe: delete a line from file. Pin
CPallini25-Feb-09 22:13
mveCPallini25-Feb-09 22:13 
GeneralRe: delete a line from file. Pin
David Crow26-Feb-09 3:07
David Crow26-Feb-09 3:07 
Questionhiding nodes in a mfc ctreectrl Pin
kitkat1201225-Feb-09 17:05
kitkat1201225-Feb-09 17:05 
AnswerRe: hiding nodes in a mfc ctreectrl Pin
Hamid_RT25-Feb-09 20:54
Hamid_RT25-Feb-09 20:54 
AnswerRe: hiding nodes in a mfc ctreectrl Pin
Iain Clarke, Warrior Programmer25-Feb-09 22:06
Iain Clarke, Warrior Programmer25-Feb-09 22:06 
Questionupdate 3ds max plugin without restarting 3ds max 2008(Q2) Pin
akira3225-Feb-09 16:09
akira3225-Feb-09 16:09 

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.