Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot check new menu item

Status
Not open for further replies.

newbiepg

Programmer
Joined
Nov 6, 2002
Messages
181
Location
IN
There is a menu which displays stylesheets
Of these, two are added by default
and the user can add new stylesheets in the applications.

my problem is i cannot check new items in the menu.These are added by the user.

i am using this command
cmbui->m_pmenu->CheckMenuItem(3,MF_CHECKED|MF_BYPOSITION);

this works fine when i check the two default stylesheets
 
>> CheckMenuItem([red]3[/red],MF_CHECKED|MF_BYPOSITION);

So you have four items in the menu? And you are trying to make the fourth item checked?


-pete
 
that is dynamic
i am using a variable i
 
>> i am using a variable i

Then the code you posted is not part of the problem you are solving? See the FAQ: Five steps to asking a question faq333-3811

-pete
 
you can dimnamically ensure what there are only three items and compare dinamically do your variable i(you can also dinamically j, k, l or any other variable names).

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top