CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 11 of 11
  1. #1
    Join Date
    Jul 2005
    Posts
    57

    Question Very simple question A Separator

    I am wondering how I can draw a separator on my dialog box, th eone same as that you see in some drop-down menu. I think it simple to you but soooo difficult to me . I need it to look like a 3d line.
    Thank you

  2. #2
    Join Date
    Jul 2005
    Posts
    57

    Re: Very simple question A Separator

    I have 2 picture boxes and I want a separator in between

  3. #3
    Join Date
    Sep 2004
    Location
    Italy
    Posts
    389

    Re: Very simple question A Separator

    Do you mean a splitter window? But i can't see the link between a splitter window and a dropdown menu....

  4. #4
    Join Date
    Jul 2005
    Posts
    57

    Question Re: Very simple question A Separator

    Alt-F on your web browser, you can then see the line.
    If you know how to do that, could you post something about it please?
    Last edited by buffal; October 2nd, 2005 at 02:50 AM.
    {._.}
    (n n)

  5. #5
    Join Date
    Jun 2005
    Posts
    1,255

    Re: Very simple question A Separator

    In the resource of a menu, you define
    Code:
      MENUITEM SEPARATOR
    but I don't know how you can easily write a line in a dialog box.

  6. #6
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,244

    Re: Very simple question A Separator

    I hope the attached image suggest what you must do with no other comments.
    Attached Images Attached Images
    Last edited by ovidiucucu; October 2nd, 2005 at 06:21 AM. Reason: change image
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

  7. #7
    Join Date
    Jul 2005
    Posts
    57

    Re: Very simple question A Separator

    But there are some developers who do not know how to do that,
    {._.}
    (n n)

  8. #8
    Join Date
    Jul 2005
    Posts
    57

    Re: Very simple question A Separator

    But sadly, your image isnt what I really wanted.
    So now I post an image please have a look and tell me how that can be accomplished.
    Many thanks inadvance to you by the way...
    Attached Images Attached Images
    {._.}
    (n n)

  9. #9
    Join Date
    Sep 2004
    Location
    Italy
    Posts
    389

    Re: Very simple question A Separator

    It's a simple static or picture control (as ovidiucucu shown) with 1 pixel height and an etched border:

    Code:
    CreateWindow("STATIC", "", WS_CHILD | WS_VISIBLE | SS_ETCHEDFRAME, 5,5,
    100, //the length
    1, //1 pixel (or 2) high
    hwnd, (HMENU)-1, //IDC_STATIC?
    GetModuleHandle(NULL), NULL);
    Can be:

  10. #10
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,244

    Re: Very simple question A Separator

    Quote Originally Posted by buffal
    But sadly, your image isnt what I really wanted.
    So now I post an image please have a look and tell me how that can be accomplished.
    Many thanks inadvance to you by the way...
    Let us play "Etched-Raised"...
    • change "Color" combo selection from "Etched" to "Gray"
    • go to "Extended Styles" tab and check "Modal frame"
    • drag to size the static control until see a line you like.

    Not yet satisfied? Play yourself with styles/extended styles.
    Attached Images Attached Images
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

  11. #11
    Join Date
    Jul 2005
    Posts
    57

    Re: Very simple question A Separator

    Thank you kkez and ovidiucucu. That is what I am looking for,
    {._.}
    (n n)

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