Click here to Skip to main content
15,891,431 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OpenMP performance inconsistency on i7 Pin
Aescleal6-Aug-10 6:30
Aescleal6-Aug-10 6:30 
AnswerRe: OpenMP performance inconsistency on i7 Pin
Aescleal5-Aug-10 2:12
Aescleal5-Aug-10 2:12 
GeneralRe: OpenMP performance inconsistency on i7 Pin
Chesnokov Yuriy5-Aug-10 3:02
professionalChesnokov Yuriy5-Aug-10 3:02 
GeneralRe: OpenMP performance inconsistency on i7 Pin
Aescleal5-Aug-10 3:11
Aescleal5-Aug-10 3:11 
Questionregisterhotkey function affects other applications when my app is still running Pin
Jayapal Chandran5-Aug-10 0:22
Jayapal Chandran5-Aug-10 0:22 
AnswerRe: registerhotkey function affects other applications when my app is still running Pin
Sauro Viti5-Aug-10 1:01
professionalSauro Viti5-Aug-10 1:01 
GeneralRe: registerhotkey function affects other applications when my app is still running Pin
Jayapal Chandran5-Aug-10 9:35
Jayapal Chandran5-Aug-10 9:35 
AnswerRe: registerhotkey function affects other applications when my app is still running Pin
Sauro Viti5-Aug-10 10:45
professionalSauro Viti5-Aug-10 10:45 
Accelerators are quite easy to use; the steps required are the following:


  1. create a new resource of type accelerator table inside your .rc file, then add the entries that you want to that table using the resource editor
  2. load the accelerator table using the LoadAccelerators function
  3. inside the message loop of the window that you want to process the accelerators, use the TranslateAccelerator function to dispatch them


You can read the documentation about accelerator here[^] on the MSDN.

Note: if you are using MFC and your application is based on the document/view architecture, then the project wizard alerady creates an accelerator table for you, and that table is already loaded and used by your frame window (see Managing Menus, Control Bars, and Accelerators (MFC)[^] on the MSDN). If your application is an MFC dialog based one, you should manually add the code to load the accelerator table (you can call LoadAccelerators in the constructor of your CDialog derived class) and to dispatch the accelerators, by overriding the PreTranslateMessage virtual method and calling TranslateAccelerator.
GeneralRe: registerhotkey function affects other applications when my app is still running Pin
Jayapal Chandran5-Aug-10 11:55
Jayapal Chandran5-Aug-10 11:55 
QuestionHow to get the Selected Item from CListControl Pin
Sakhalean4-Aug-10 20:30
Sakhalean4-Aug-10 20:30 
QuestionRe: How to get the Selected Item from CListControl Pin
CPallini4-Aug-10 21:04
mveCPallini4-Aug-10 21:04 
QuestionIs it ok to use uninitialized pointer? Pin
Sameerkumar Namdeo4-Aug-10 18:46
Sameerkumar Namdeo4-Aug-10 18:46 
AnswerRe: Is it ok to use uninitialized pointer? Pin
«_Superman_»4-Aug-10 19:15
professional«_Superman_»4-Aug-10 19:15 
GeneralRe: Is it ok to use uninitialized pointer? Pin
Rick York4-Aug-10 19:34
mveRick York4-Aug-10 19:34 
GeneralRe: Is it ok to use uninitialized pointer? [modified] Pin
Cedric Moonen4-Aug-10 20:48
Cedric Moonen4-Aug-10 20:48 
GeneralRe: Is it ok to use uninitialized pointer? Pin
CPallini4-Aug-10 20:57
mveCPallini4-Aug-10 20:57 
GeneralRe: Is it ok to use uninitialized pointer? Pin
Cedric Moonen4-Aug-10 21:07
Cedric Moonen4-Aug-10 21:07 
GeneralRe: Is it ok to use uninitialized pointer? Pin
CPallini4-Aug-10 21:15
mveCPallini4-Aug-10 21:15 
AnswerRe: Is it ok to use uninitialized pointer? [modified] Pin
bleedingfingers4-Aug-10 21:19
bleedingfingers4-Aug-10 21:19 
AnswerRe: Is it ok to use uninitialized pointer? Pin
Sameerkumar Namdeo4-Aug-10 23:17
Sameerkumar Namdeo4-Aug-10 23:17 
AnswerRe: Is it ok to use uninitialized pointer? Pin
MuraliKrishnaP5-Aug-10 9:44
MuraliKrishnaP5-Aug-10 9:44 
Questionwhy const pointer is NOT const? how to solve the problem? Pin
includeh104-Aug-10 13:12
includeh104-Aug-10 13:12 
AnswerRe: why const pointer is NOT const? how to solve the problem? PinPopular
KingsGambit4-Aug-10 17:02
KingsGambit4-Aug-10 17:02 
AnswerRe: why const pointer is NOT const? how to solve the problem? Pin
Aescleal5-Aug-10 0:02
Aescleal5-Aug-10 0:02 
QuestionHow to get physical memory size available to a process? Pin
Code-o-mat4-Aug-10 11:25
Code-o-mat4-Aug-10 11:25 

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.