Click here to Skip to main content
16,004,977 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRemoving icon from header Pin
Chernobog112-Oct-03 21:51
Chernobog112-Oct-03 21:51 
GeneralRe: Removing icon from header Pin
Anand Paranjpe12-Oct-03 22:45
Anand Paranjpe12-Oct-03 22:45 
GeneralRe: Removing icon from header Pin
Chernobog112-Oct-03 23:34
Chernobog112-Oct-03 23:34 
GeneralRe: Removing icon from header Pin
Anand Paranjpe12-Oct-03 23:50
Anand Paranjpe12-Oct-03 23:50 
QuestionODBC in RunTime? Pin
murali_utr12-Oct-03 21:01
murali_utr12-Oct-03 21:01 
QuestionHow to get mapped drive info Pin
samhita12-Oct-03 20:40
samhita12-Oct-03 20:40 
AnswerRe: How to get mapped drive info Pin
David Crow13-Oct-03 9:58
David Crow13-Oct-03 9:58 
GeneralUnable to set font to menu in Windows 2000 Pin
samhita12-Oct-03 19:37
samhita12-Oct-03 19:37 
I am setting font to menu items. For this i have set the onwerdraw property to true and implemented DrawItem.

In WndProc Procedure the lparam parameter is type cast to Drawitemstruct. This has one field as itemId which specifies the menu item id.

In windos 2000 i am not able to get this item id correctly, if the menu item has a submenu. for example if my menu is like
File Edit Search
|-------Open |-----Find
|-------New |-----Find Next
|------Close

Then it does not give itemid of file properly, some big value is assigned to itemid which is not correct. Similarly i am not getting itemid of search as well. For rest of the items Open, New, Close,Edit, Find and Find Next i am getting the correct item id and i am able to change its font and font size.

This concludes that if any menuitem has a submenu then its item id is not assigned properly. Also this happens in Winows 2000 only and in Windows 98 it shows properly. Can anybody please tell me why it is not assigning correct itemid?

Suvarna Joshi
GeneralFont Pin
act_x12-Oct-03 17:03
act_x12-Oct-03 17:03 
GeneralRe: Font Pin
Johann Gerell12-Oct-03 19:46
Johann Gerell12-Oct-03 19:46 
GeneralRect positioning Pin
act_x12-Oct-03 16:45
act_x12-Oct-03 16:45 
GeneralRe: Rect positioning Pin
YaronNir12-Oct-03 21:52
YaronNir12-Oct-03 21:52 
GeneralRe: UpdateData() and worker thread Pin
valikac12-Oct-03 16:32
valikac12-Oct-03 16:32 
QuestionHas Anyone ever had D3D Running FULLSCREEN in a SDI App?? Pin
Member 50926812-Oct-03 11:27
Member 50926812-Oct-03 11:27 
AnswerRe: Has Anyone ever had D3D Running FULLSCREEN in a SDI App?? Pin
Joey Bloggs12-Oct-03 15:47
Joey Bloggs12-Oct-03 15:47 
GeneralRe: Has Anyone ever had D3D Running FULLSCREEN in a SDI App?? Pin
Member 50926813-Oct-03 6:33
Member 50926813-Oct-03 6:33 
GeneralEnum problem Pin
Ziro_012-Oct-03 5:39
Ziro_012-Oct-03 5:39 
GeneralRe: Enum problem Pin
Michael Dunn12-Oct-03 7:52
sitebuilderMichael Dunn12-Oct-03 7:52 
GeneralRe: Enum problem Pin
Ziro_012-Oct-03 15:46
Ziro_012-Oct-03 15:46 
GeneralUpdateData() and worker thread Pin
AJ12312-Oct-03 5:24
AJ12312-Oct-03 5:24 
GeneralHarddisk partitions Pin
m.badran12-Oct-03 4:56
m.badran12-Oct-03 4:56 
GeneralRe: Harddisk partitions Pin
Michael Dunn12-Oct-03 7:54
sitebuilderMichael Dunn12-Oct-03 7:54 
GeneralRe: Harddisk partitions Pin
Chernobog112-Oct-03 21:37
Chernobog112-Oct-03 21:37 
GeneralRe: Harddisk partitions Pin
Michael Dunn13-Oct-03 4:43
sitebuilderMichael Dunn13-Oct-03 4:43 
GeneralCOleDropTarget::OnDragOver(), windows ignores my DROPEFFECT_NONE Pin
ohadp12-Oct-03 1:55
ohadp12-Oct-03 1:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.