“This class,
BCMenu, implements owner drawn menus derived from the CMenu class. The purpose of which
is to mimic the menu style used in Visual C++ 5.0 and MS Word. I can't take credit for all the code; some
portions of it were taken from code supplied by Ben Ashley and Girish Bharadwaj. The difference between
their codes and this one is quite simple; this one makes it very easy to build these cool menus with bitmaps
into your application. I've removed the Icon loading stuff and replaced it with Bitmaps. The bitmaps allow you
to use the 16X15 toolbar bitmaps directly from your toolbars in the resource editor. As well, there is no
scaling of the bitmaps so they always look good. You can also load Bitmap resources and define bitmaps for
your check marks. I've also added the default checkmark drawing stuff, separators, proper alignment of
keyboard accelerator text, keyboard shortcuts, proper alignment of popup menu items, proper system colour
changes when the Display Appearance changes, plus bug fixes to the Ben Ashley's LoadMenu function for
“This class,
BCMenu, implements owner drawn menus derived from the CMenu class. The purpose of which
is to mimic the menu style used in Visual C++ 5.0 and MS Word. I can't take credit for all the code; some
portions of it were taken from code supplied by Ben Ashley and Girish Bharadwaj. The difference between
their codes and this one is quite simple; this one makes it very easy to build these cool menus with bitmaps
into your application. I've removed the Icon loading stuff and replaced it with Bitmaps. The bitmaps allow you
to use the 16X15 toolbar bitmaps directly from your toolbars in the resource editor. As well, there is no
scaling of the bitmaps so they always look good. You can also load Bitmap resources and define bitmaps for
your check marks. I've also added the default checkmark drawing stuff, separators, proper alignment of
keyboard accelerator text, keyboard shortcuts, proper alignment of popup menu items, proper system colour
changes when the Display Appearance changes, plus bug fixes to the Ben Ashley's LoadMenu function for
การแปล กรุณารอสักครู่..
