Click here to Skip to main content
16,010,392 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Icon association with non-executable file Pin
Gary R. Wheeler4-Sep-05 6:50
Gary R. Wheeler4-Sep-05 6:50 
QuestionAnyone can help me about Html Help Workshop? Pin
Anonymous3-Sep-05 1:54
Anonymous3-Sep-05 1:54 
AnswerRe: Anyone can help me about Html Help Workshop? Pin
Gary R. Wheeler3-Sep-05 2:18
Gary R. Wheeler3-Sep-05 2:18 
QuestionFinding the same function in VC++ Pin
KaGeU3-Sep-05 0:09
KaGeU3-Sep-05 0:09 
AnswerRe: Finding the same function in VC++ Pin
toxcct3-Sep-05 0:29
toxcct3-Sep-05 0:29 
GeneralRe: Finding the same function in VC++ Pin
KaGeU3-Sep-05 0:46
KaGeU3-Sep-05 0:46 
QuestionShortcut keys - Runtime? Pin
G Haranadh2-Sep-05 23:39
G Haranadh2-Sep-05 23:39 
AnswerRe: Shortcut keys - Runtime? Pin
Jose Lamas Rios4-Sep-05 20:20
Jose Lamas Rios4-Sep-05 20:20 
You may try getting the current accelerator handle (e.g., m_hAccelTable in a CFrameWnd) and:

1 - Use CopyAcceleratorTable to obtain the current table into an array of ACCEL structures.
2 - Add more ACCEL structures to the array.
3 - Create a new table from the array using CreateAcceleratorTable
4 - Changing the current accelerator to the new one.
5 - Destroy the old accelerator using DestroyAcceleratorTable

It's just a suggestion. Never tried it.

An alternative would be to create a separate table in a derived window and use it in your override for PreTranslateMessage:
BOOL CYourWindow::PreTranslateMessage(MSG* pMsg)
{
   // m_hAccel is your own previously created accelerator
   if (m_hAccel != NULL && TranslateAccelerator(m_hWnd, m_hAccel, pMsg))
     return TRUE;
 
   // It's not in my table, let the base class do
   // the normal processing
   // assuming CYourWindow is derived from CYourWindowBase
   return CYourWindowBase::PreTranslateMessage(pMsg);
}

The above could be done in a class derived from CWinApp too.

Hope that helps,

--
jlr
http://jlamas.blogspot.com/[^]
QuestionUnicode Release? Pin
G Haranadh2-Sep-05 23:13
G Haranadh2-Sep-05 23:13 
AnswerRe: Unicode Release? Pin
Michael Dunn2-Sep-05 23:17
sitebuilderMichael Dunn2-Sep-05 23:17 
GeneralRe: Unicode Release? Pin
G Haranadh2-Sep-05 23:24
G Haranadh2-Sep-05 23:24 
General[Msg Deleted] Pin
sunit53-Sep-05 0:21
sunit53-Sep-05 0:21 
GeneralRe: Unicode Release? Pin
G Haranadh3-Sep-05 0:26
G Haranadh3-Sep-05 0:26 
AnswerRe: Unicode Release? Pin
Jose Lamas Rios3-Sep-05 11:23
Jose Lamas Rios3-Sep-05 11:23 
Questionproblem in cutting string Pin
Ankit Aneja2-Sep-05 23:07
Ankit Aneja2-Sep-05 23:07 
AnswerRe: problem in cutting string Pin
Michael Dunn2-Sep-05 23:14
sitebuilderMichael Dunn2-Sep-05 23:14 
GeneralRe: problem in cutting string Pin
Ankit Aneja2-Sep-05 23:34
Ankit Aneja2-Sep-05 23:34 
AnswerRe: problem in cutting string Pin
ThatsAlok3-Sep-05 0:12
ThatsAlok3-Sep-05 0:12 
GeneralRe: problem in cutting string Pin
Ankit Aneja3-Sep-05 0:46
Ankit Aneja3-Sep-05 0:46 
JokeRe: problem in cutting string Pin
ThatsAlok3-Sep-05 1:50
ThatsAlok3-Sep-05 1:50 
GeneralRe: problem in cutting string Pin
Ankit Aneja3-Sep-05 2:24
Ankit Aneja3-Sep-05 2:24 
GeneralRe: problem in cutting string Pin
Prakash Nadar3-Sep-05 16:02
Prakash Nadar3-Sep-05 16:02 
QuestionHow to use ExecWB method? Pin
Roozbeh692-Sep-05 22:07
professionalRoozbeh692-Sep-05 22:07 
Questionconcept of & Pin
Rupali sarda2-Sep-05 21:55
Rupali sarda2-Sep-05 21:55 
AnswerRe: concept of & Pin
toxcct2-Sep-05 22:48
toxcct2-Sep-05 22:48 

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.