Click here to Skip to main content
15,916,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioncreate a new child frame Pin
vikas amin2-Oct-05 23:44
vikas amin2-Oct-05 23:44 
AnswerRe: create a new child frame Pin
Selvam R3-Oct-05 0:02
professionalSelvam R3-Oct-05 0:02 
GeneralRe: create a new child frame Pin
vikas amin3-Oct-05 0:53
vikas amin3-Oct-05 0:53 
QuestionI was about to assume ... Pin
Anonymous2-Oct-05 23:15
Anonymous2-Oct-05 23:15 
AnswerRe: I was about to assume ... Pin
normanS3-Oct-05 5:18
normanS3-Oct-05 5:18 
QuestionConvolution Code required Pin
karen_yingying2-Oct-05 23:11
karen_yingying2-Oct-05 23:11 
AnswerRe: Convolution Code required Pin
Ghasrfakhri3-Oct-05 0:29
Ghasrfakhri3-Oct-05 0:29 
Questionhow to store BLOB images into Oracle Database using ADO Pin
snprani2-Oct-05 20:58
snprani2-Oct-05 20:58 
AnswerRe: how to store BLOB images into Oracle Database using ADO Pin
S Douglas3-Oct-05 0:27
professionalS Douglas3-Oct-05 0:27 
QuestionDoubt about which message handler to use Pin
Ravi Sankar S2-Oct-05 20:45
Ravi Sankar S2-Oct-05 20:45 
AnswerRe: Doubt about which message handler to use Pin
Lane Yu2-Oct-05 22:01
Lane Yu2-Oct-05 22:01 
AnswerRe: Doubt about which message handler to use Pin
Intertherain3-Oct-05 2:49
Intertherain3-Oct-05 2:49 
QuestionRe: Doubt about which message handler to use Pin
David Crow3-Oct-05 2:54
David Crow3-Oct-05 2:54 
AnswerRe: Doubt about which message handler to use Pin
Ravi Sankar S3-Oct-05 3:27
Ravi Sankar S3-Oct-05 3:27 
QuestionOwner draw ClistCtrl Pin
Jagadeesh VN2-Oct-05 20:30
Jagadeesh VN2-Oct-05 20:30 
QuestionPrinting a Captured Bitmap Pin
karnal2-Oct-05 20:27
karnal2-Oct-05 20:27 
QuestionJPG file Pin
aasstt2-Oct-05 20:05
aasstt2-Oct-05 20:05 
AnswerRe: JPG file Pin
Stlan2-Oct-05 23:47
Stlan2-Oct-05 23:47 
QuestionEnable/Disable pop-up Menu items Pin
lavate malllik2-Oct-05 20:00
lavate malllik2-Oct-05 20:00 
AnswerRe: Enable/Disable pop-up Menu items Pin
lavate malllik2-Oct-05 21:00
lavate malllik2-Oct-05 21:00 
AnswerRe: Enable/Disable pop-up Menu items Pin
Lane Yu2-Oct-05 21:11
Lane Yu2-Oct-05 21:11 
QuestionPreTranslateMessage Pin
Nishad S2-Oct-05 17:47
Nishad S2-Oct-05 17:47 
AnswerRe: PreTranslateMessage Pin
Mircea Puiu2-Oct-05 20:37
Mircea Puiu2-Oct-05 20:37 
According to MS, a custom DLL that is statically linked to the MFC library needs to have a CWinApp-derived class and a single object of that application class, as does an executable MFC application. The CWinApp object of the DLL, however, does not have a main message pump, as does the CWinApp object of an application. If the DLL opens modeless dialogs or has a main frame window of its own, the application's main message pump must call a routine exported by the DLL, which in turn calls the CWinApp::PreTranslateMessage member function of the DLL's application object.

See coding example and more info on the topic here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample98/html/_sample_mfc_dlltrace.asp[^]


SkyWalker
GeneralRe: PreTranslateMessage Pin
Nishad S2-Oct-05 22:08
Nishad S2-Oct-05 22:08 
GeneralRe: PreTranslateMessage Pin
Mircea Puiu3-Oct-05 0:53
Mircea Puiu3-Oct-05 0:53 

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.