|
-
March 30th, 1999, 06:06 AM
#1
HELP HELP !problem in dialog box
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
-
March 30th, 1999, 06:22 AM
#2
Re: HELP HELP !problem in dialog box
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
-
March 31st, 1999, 12:42 AM
#3
Re: HELP HELP !problem in dialog box
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|