Click here to Skip to main content
15,900,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralStoring a bitmap Pin
Dave Harper13-Oct-03 1:07
Dave Harper13-Oct-03 1:07 
GeneralRe: Storing a bitmap Pin
Dave Harper13-Oct-03 8:17
Dave Harper13-Oct-03 8:17 
GeneralRe: Storing a bitmap Pin
David Crow13-Oct-03 9:56
David Crow13-Oct-03 9:56 
GeneralRe: Storing a bitmap Pin
Dave Harper13-Oct-03 10:21
Dave Harper13-Oct-03 10:21 
GeneralUsing C# in MFC Project Pin
afshinghaffari13-Oct-03 0:38
afshinghaffari13-Oct-03 0:38 
GeneralRe: Using C# in MFC Project Pin
Anthony_Yio13-Oct-03 0:53
Anthony_Yio13-Oct-03 0:53 
GeneralLinking functions to keystrokes Pin
BoudewijnEctor13-Oct-03 0:27
BoudewijnEctor13-Oct-03 0:27 
GeneralRe: Linking functions to keystrokes Pin
Mike Dimmick13-Oct-03 1:49
Mike Dimmick13-Oct-03 1:49 
A keyboard accelerator generates (through the ::TranslateAccelerator function) a WM_COMMAND message with the identifier you've assigned in the accelerator table.

In MFC, CFrameWnd::PreTranslateMessage calls ::TranslateAccelerator for you. Handle the message with an ON_COMMAND macro. For a raw API application, you should add a call to TranslateAccelerator in your message loop and handle the message in your window's window procedure.

For an MFC dialog-based application, override PreTranslateMessage and add a call to TranslateAccelerator. Again, handle with ON_COMMAND.

Note that menu items, command buttons, toolbar buttons and accelerators all generate WM_COMMAND messages. You should assign all items in the above categories which perform the same operation the same identifier (e.g. ID_FILE_SAVE for the File > Save menu item, the Save button in the toolbar, and the Ctrl+S key combination).
GeneralStrRetToStr Pin
hph13-Oct-03 0:20
hph13-Oct-03 0:20 
GeneralRe: StrRetToStr Pin
Anand Paranjpe13-Oct-03 1:08
Anand Paranjpe13-Oct-03 1:08 
GeneralRe: StrRetToStr Pin
hph13-Oct-03 1:11
hph13-Oct-03 1:11 
GeneralRe: StrRetToStr Pin
Anand Paranjpe13-Oct-03 1:21
Anand Paranjpe13-Oct-03 1:21 
GeneralRe: StrRetToStr Pin
Michael P Butler13-Oct-03 1:37
Michael P Butler13-Oct-03 1:37 
GeneralRe: StrRetToStr Pin
hph13-Oct-03 2:39
hph13-Oct-03 2:39 
GeneralRe: StrRetToStr Pin
ELEFK13-Oct-03 4:17
sussELEFK13-Oct-03 4:17 
GeneralFind in files causes VS.NET to hang Pin
ed welch13-Oct-03 0:13
ed welch13-Oct-03 0:13 
GeneralFindFirstChangeNotification Pin
Liorsh13-Oct-03 0:07
Liorsh13-Oct-03 0:07 
GeneralRe: FindFirstChangeNotification Pin
Neville Franks13-Oct-03 1:52
Neville Franks13-Oct-03 1:52 
GeneralRe: FindFirstChangeNotification Pin
vcplusplus13-Oct-03 3:43
vcplusplus13-Oct-03 3:43 
GeneralNeed help wif toggling check box Pin
fynox12-Oct-03 23:27
fynox12-Oct-03 23:27 
GeneralRe: Need help wif toggling check box Pin
Anand Paranjpe12-Oct-03 23:41
Anand Paranjpe12-Oct-03 23:41 
GeneralRe: Need help wif toggling check box Pin
peterchen12-Oct-03 23:48
peterchen12-Oct-03 23:48 
Questionhow to read unicode file Pin
YaronNir12-Oct-03 23:13
YaronNir12-Oct-03 23:13 
AnswerRe: how to read unicode file Pin
Anand Paranjpe12-Oct-03 23:36
Anand Paranjpe12-Oct-03 23:36 
GeneralRe: how to read unicode file Pin
YaronNir12-Oct-03 23:47
YaronNir12-Oct-03 23:47 

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.