Click to See Complete Forum and Search --> : HELP HELP !problem in dialog box
Ammu
March 30th, 1999, 05:06 AM
I have a dialog box with added menu , when i display the dialog , it is not showing any border line between the menu and the other portion , i want to draw a line under my menu in the dialog box , i got the CDC control and used MoveTo and LineTo commands , i have not seen any lines on my dialog box
can anyone HELP !!! me
Thanx a lot
Regards
Ammu
vittal
March 30th, 1999, 05:22 AM
Hi,
The problem may be in getting the DC. Check if you are getting the DC properly.
If yes, Try drawing a line or something at the centre of the dialog so that the lines
are not hidden behind the menu.
OR check the background color, Brush color and Pen color.
I have used dlg based appln and I was able to draw lines.
If you need further help, post the code
All the Best
Vittal
Ammu
March 30th, 1999, 11:42 PM
thanx for responding
i have still have problem , it is not drawinf the line , even i created a new dialog to test this , it is not working
in Oninitdialog i have written code like
CDialog::OnInitDialog();
// line drawing
CDC *pDC = GetDC();
pDC->SetBkMode(OPAQUE);
pDC->GetBkColor();
pDC->SetBkColor(RGB(255,0,0));
pDC->MoveTo(0,0);
pDC->LineTo(200,200);
// TODO: Add extra initialization here
return TRUE; // return
nothing it is drawing
plz help me thanx
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.