CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 1999
    Posts
    4

    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

  2. #2
    Join Date
    Apr 1999
    Posts
    31

    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

  3. #3
    Join Date
    Mar 1999
    Posts
    4

    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
  •  





Click Here to Expand Forum to Full Width

Featured