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

C / C++ / MFC

 
AnswerRe: ORACLE Commit problem--- Error 8197 Pin
Rajesh R Subramanian8-May-08 23:32
professionalRajesh R Subramanian8-May-08 23:32 
QuestionHow to invoke application/service on another computer Pin
AnhKhoi8-May-08 22:48
AnhKhoi8-May-08 22:48 
AnswerRe: How to invoke application/service on another computer Pin
toxcct8-May-08 23:18
toxcct8-May-08 23:18 
GeneralRe: How to invoke application/service on another computer Pin
AnhKhoi9-May-08 0:31
AnhKhoi9-May-08 0:31 
GeneralRe: How to invoke application/service on another computer Pin
toxcct9-May-08 1:01
toxcct9-May-08 1:01 
QuestionDialog application Pin
tom groezer8-May-08 22:28
tom groezer8-May-08 22:28 
AnswerRe: Dialog application Pin
Matthew Faithfull8-May-08 22:42
Matthew Faithfull8-May-08 22:42 
AnswerRe: Dialog application Pin
CPallini8-May-08 22:43
mveCPallini8-May-08 22:43 
tom groezer wrote:
When my MFC application is run, it invokes a dialog. Though I have removed the OK and the cancel button from the dialog my dialog can be dismissed by pressing the esc key

Override PreTranslateMessage, for instance
BOOL CMyDlg::PreTranslateMessage(MSG* pMsg)
{
  if ( pMsg->message == WM_KEYDOWN )
  {
    if (pMsg->wParam == VK_ESCAPE)
    {
      return TRUE;
    }
  }
  return CDialog::PreTranslateMessage(pMsg);
}

BTW probably you'll have also to handle RETURN key.

tom groezer wrote:
Also i like to dismiss the dialog by posting a message after some time. how to I post a destroy message to the dialog.

What about a TIMER?
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


AnswerRe: Dialog application Pin
toxcct8-May-08 23:13
toxcct8-May-08 23:13 
GeneralRe: Dialog application Pin
tom groezer9-May-08 2:34
tom groezer9-May-08 2:34 
GeneralRe: Dialog application Pin
toxcct9-May-08 3:03
toxcct9-May-08 3:03 
QuestionTo find MMC's version on a system Pin
Mushtaque Nizamani8-May-08 22:04
Mushtaque Nizamani8-May-08 22:04 
AnswerRe: To find MMC's version on a system Pin
Hamid_RT9-May-08 0:25
Hamid_RT9-May-08 0:25 
QuestionVirtual Constructor Pin
Anandi.VC8-May-08 21:49
Anandi.VC8-May-08 21:49 
AnswerRe: Virtual Constructor Pin
Rajkumar R8-May-08 21:53
Rajkumar R8-May-08 21:53 
AnswerRe: Virtual Constructor Pin
fefe.wyx8-May-08 21:54
fefe.wyx8-May-08 21:54 
AnswerRe: Virtual Constructor Pin
toxcct8-May-08 21:59
toxcct8-May-08 21:59 
AnswerRe: Virtual Constructor Pin
jhwurmbach9-May-08 3:05
jhwurmbach9-May-08 3:05 
QuestionDefaultIcon Pin
john56328-May-08 21:14
john56328-May-08 21:14 
Questionxp home editon problem Pin
followait8-May-08 20:42
followait8-May-08 20:42 
AnswerRe: xp home editon problem Pin
Rajkumar R8-May-08 20:51
Rajkumar R8-May-08 20:51 
GeneralRe: xp home editon problem Pin
followait8-May-08 23:02
followait8-May-08 23:02 
GeneralRe: xp home editon problem Pin
Rajkumar R8-May-08 23:10
Rajkumar R8-May-08 23:10 
GeneralRe: xp home editon problem Pin
followait9-May-08 7:35
followait9-May-08 7:35 
AnswerRe: xp home editon problem Pin
Rajesh R Subramanian8-May-08 23:37
professionalRajesh R Subramanian8-May-08 23:37 

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.