|
-
Nov 19th, 2002, 02:28 PM
#1
Thread Starter
Fanatic Member
Menu seperator
How do I create a menu seperator (in a Win32 program). I've got the following code;
Code:
// Creates sub menu
hSubMenu = CreatePopupMenu();
AppendMenu(hSubMenu, MF_STRING, IDC_MENU_NEW, "&New");
AppendMenu(hSubMenu, MF_STRING, IDC_MENU_OPEN, "&Open");
AppendMenu(hSubMenu, MF_STRING, IDC_MENU_SAVE, "&Save");
AppendMenu(hSubMenu, MF_STRING, IDC_MENU_SAVEAS, "Save &As");
AppendMenu(hSubMenu, MF_STRING, IDC_MENU_SEP1, ""); //Like this to be a seperator
AppendMenu(hSubMenu, MF_STRING, IDC_MENU_EXIT, "E&xit");
AppendMenu(hMenu, MF_STRING | MF_POPUP, (UINT)hSubMenu, "&File");
Thanks
-
Nov 19th, 2002, 02:35 PM
#2
Monday Morning Lunatic
I think you set the caption to "-".
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Nov 19th, 2002, 02:41 PM
#3
I remember something about an MF_SEPARATOR flag as well.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Nov 19th, 2002, 03:04 PM
#4
Thread Starter
Fanatic Member
"-" didn't work (tried that first), but MF_SEPARATOR did . So thanks, both of you. Especially because you replied so fast
-
Nov 19th, 2002, 03:05 PM
#5
Frenzied Member
Originally posted by parksie
I think you set the caption to "-".
Thats VB =P
Z.
-
Nov 19th, 2002, 03:15 PM
#6
Monday Morning Lunatic
What? AAAAAAAARRRRRGGGHHHHHHHHHH!
/me smites VB for causing damage to my brain
Djikstra was right
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Nov 19th, 2002, 03:20 PM
#7
Frenzied Member
Originally posted by parksie
What? AAAAAAAARRRRRGGGHHHHHHHHHH!
/me smites VB for causing damage to my brain
Djikstra was right
Yup!
Z.
-
Nov 19th, 2002, 03:27 PM
#8
* pretends to understand *
Yup!
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Nov 20th, 2002, 05:42 AM
#9
* admits he doesn't understand *
Who's Djikstra?
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Nov 20th, 2002, 06:16 AM
#10
Monday Morning Lunatic
Computer Science guy. Fairly famous 
Once said:
It is practically impossible to teach good programming style to students that [sic] have had prior exposure to BASIC; as potential programmers they are mentally mutilated beyond hope of regeneration.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Nov 20th, 2002, 07:21 AM
#11
Sounds like he's been reading my resume.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Nov 20th, 2002, 01:34 PM
#12
Frenzied Member
Originally posted by parksie
Computer Science guy. Fairly famous 
Twas a sad day that he died =(
Z.
-
Nov 20th, 2002, 01:57 PM
#13
Monday Morning Lunatic
True. At least we still have Knuth 
I really need to order that book one of these days.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Nov 20th, 2002, 05:02 PM
#14
Frenzied Member
-
Nov 20th, 2002, 05:03 PM
#15
Monday Morning Lunatic
And the fourth once it's finished, yep.
I'm taking it as one book, 3 volumes
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Nov 20th, 2002, 05:31 PM
#16
Aahhh...
Very true indeed.
And I need to get the Effective C++, More Effective C++ and Effective STL books...
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Nov 20th, 2002, 06:04 PM
#17
Monday Morning Lunatic
Hmmm....volumes 1 and 2 from amazon are only £69.66 together, with no postage.....I am very tempted. Will check around first though
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Nov 20th, 2002, 06:26 PM
#18
Frenzied Member
They always have the three book set sitting out for $150 at B&N... always tempting... =)
Z.
-
Nov 20th, 2002, 06:29 PM
#19
Monday Morning Lunatic
Arse. Will have to wait until I'm back from Uni and at home full-time....the couriers will need a signature -- everyone at home is at work during the day, and the people in the post room at Uni have a policy of not signing for things (annoying sometimes, but it's far safer that way).
Oh well. I've lasted waiting since 1983, I can wait 2 weeks more
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
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
|