Click here to Skip to main content
15,902,112 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to Get Public IP Address Pin
Member 12566510-Jul-05 19:10
Member 12566510-Jul-05 19:10 
GeneralRe: How to Get Public IP Address Pin
cmk10-Jul-05 22:06
cmk10-Jul-05 22:06 
Questionhow to declare and use an array of pointer on functions? Pin
bouli8-Jul-05 0:28
bouli8-Jul-05 0:28 
AnswerRe: how to declare and use an array of pointer on functions? Pin
Cedric Moonen8-Jul-05 1:15
Cedric Moonen8-Jul-05 1:15 
GeneralRe: how to declare and use an array of pointer on functions? Pin
t!bast8-Jul-05 1:29
t!bast8-Jul-05 1:29 
AnswerRe: how to declare and use an array of pointer on functions? Pin
David Crow8-Jul-05 3:40
David Crow8-Jul-05 3:40 
GeneralCommand Handler problem in Dialog Pin
ugur_basak7-Jul-05 22:42
ugur_basak7-Jul-05 22:42 
GeneralRe: Command Handler problem in Dialog Pin
Jose Lamas Rios8-Jul-05 3:10
Jose Lamas Rios8-Jul-05 3:10 
You can make a dialog use an accelerator resource (say IDR_DLG_ACCELERARATOR) doing the following:

Add the following members to your dialog class:
class CSomeDialog : public CDialog
{
   // All the normal stuff [...]
 
private:
   HACCEL m_hAccelTable;
 
public:
   virtual BOOL PreTranslateMessage(MSG* pMsg);
};

Add the following to the dialog constructor
CSomeDialog::CSomeDialog(/* Constructor parms [...] */)
{
   // What you already have [...]
 
   m_hAccelTable = LoadAccelerators(
                        AfxGetResourceHandle(),
                        MAKEINTRESOURCE(IDR_DLG_ACCELERARATOR));
}

Then add the following function implementation:
BOOL CSomeDialog::PreTranslateMessage(MSG* pMsg) 
{
   if (m_hAccelTable && ::TranslateAccelerator(m_hWnd, m_hAccelTable, pMsg))
      return TRUE;
 
   return CDialog::PreTranslateMessage(pMsg);
}

Hope that helps,


--
jlr
http://jlamas.blogspot.com/[^]
GeneralRe: Command Handler problem in Dialog Pin
ugur_basak8-Jul-05 3:28
ugur_basak8-Jul-05 3:28 
Questionhow to protect files like this? Pin
szcococut7-Jul-05 22:24
szcococut7-Jul-05 22:24 
AnswerRe: how to protect files like this? Pin
khan++7-Jul-05 23:34
khan++7-Jul-05 23:34 
GeneralRe: how to protect files like this? Pin
toxcct8-Jul-05 0:51
toxcct8-Jul-05 0:51 
GeneralRe: how to protect files like this? Pin
khan++8-Jul-05 1:21
khan++8-Jul-05 1:21 
GeneralRe: how to protect files like this? Pin
toxcct8-Jul-05 1:27
toxcct8-Jul-05 1:27 
GeneralRe: how to protect files like this? Pin
khan++8-Jul-05 1:54
khan++8-Jul-05 1:54 
AnswerRe: how to protect files like this? Pin
David Crow8-Jul-05 3:46
David Crow8-Jul-05 3:46 
GeneralCView: Change background color Pin
a_du7-Jul-05 22:12
a_du7-Jul-05 22:12 
GeneralRe: CView: Change background color Pin
khan++7-Jul-05 23:56
khan++7-Jul-05 23:56 
GeneralRe: CView: Change background color Pin
Anonymous10-Jul-05 0:13
Anonymous10-Jul-05 0:13 
GeneralRe: CView: Change background color Pin
TuPacMansur7-Jul-10 13:27
TuPacMansur7-Jul-10 13:27 
GeneralUpsized database 100x slower in SQLServer Pin
mbaker17-Jul-05 21:46
mbaker17-Jul-05 21:46 
GeneralRe: Upsized database 100x slower in SQLServer Pin
Blake V. Miller8-Jul-05 16:58
Blake V. Miller8-Jul-05 16:58 
GeneralRe: Upsized database 100x slower in SQLServer Pin
Anonymous8-Jul-05 23:12
Anonymous8-Jul-05 23:12 
GeneralRe: Upsized database 100x slower in SQLServer Pin
Blake V. Miller12-Jul-05 17:14
Blake V. Miller12-Jul-05 17:14 
Questionwhich of these is the handle to my windowless app? Pin
awah7-Jul-05 21:45
awah7-Jul-05 21:45 

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.