Click here to Skip to main content
15,909,437 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Doubt on how the document object is retrieved to the application class in MFC Document View Architecture Pin
Iain Clarke, Warrior Programmer10-Mar-09 1:36
Iain Clarke, Warrior Programmer10-Mar-09 1:36 
QuestionScroll Bars and Input Fields Pin
BobInNJ9-Mar-09 7:44
BobInNJ9-Mar-09 7:44 
QuestionCHtmlView not displaying anything [modified] Pin
Brahmandcoder9-Mar-09 7:08
Brahmandcoder9-Mar-09 7:08 
QuestionAccessing Private member of a base Class from a Derived Class Pin
ForNow9-Mar-09 6:36
ForNow9-Mar-09 6:36 
AnswerRe: Accessing Private member of a base Class from a Derived Class Pin
BobInNJ9-Mar-09 7:32
BobInNJ9-Mar-09 7:32 
QuestionRe: Accessing Private member of a base Class from a Derived Class Pin
David Crow9-Mar-09 8:28
David Crow9-Mar-09 8:28 
AnswerRe: Accessing Private member of a base Class from a Derived Class Pin
ForNow9-Mar-09 12:23
ForNow9-Mar-09 12:23 
GeneralRe: Accessing Private member of a base Class from a Derived Class Pin
ForNow9-Mar-09 12:33
ForNow9-Mar-09 12:33 
http://www.codeproject.com/KB/threads/extended_thread.aspx

Sorry this the First Link

Page 5 from the PPT presentation

CWinThread

class CWinThread : public CCmdTarget {

public:

CWinThread();

CWinThread(AFX_THREADPROC pfnThreadProc, LPVOID pParam);

BOOL CreateThread(DWORD dwCreateFlags = 0, UINT nStackSize = 0,

LPSECURITY_ATTRIBUTES lpSecurityAttrs = NULL);

virtual BOOL InitInstance();

virtual int Run();

virtual BOOL PreTranslateMessage(MSG* pMsg);

virtual BOOL PumpMessage(); // low level message pump

virtual BOOL OnIdle(LONG lCount); //return TRUE if more idle processing

virtual BOOL IsIdleMessage(MSG* pMsg); //checks for special messages

private:

LPVOID m_pThreadParams; <--- is a private data member

AFX_THREADPROC m_pfnThreadProc;

HANDLE m_hThread; // this thread's HANDLE

} Back to AfxBeginThread()
QuestionI use these two functions that I have copied from codeproject to use static text in application. But everytime I put a command button in my applicatio Pin
Astitva239-Mar-09 5:10
Astitva239-Mar-09 5:10 
AnswerRe: I use these two functions that I have copied from codeproject to use static text in application. But everytime I put a command button in my applicatio Pin
Eytukan9-Mar-09 5:31
Eytukan9-Mar-09 5:31 
Generaloverlayered text Pin
Astitva239-Mar-09 5:57
Astitva239-Mar-09 5:57 
GeneralRe: overlayered text Pin
Eytukan9-Mar-09 6:03
Eytukan9-Mar-09 6:03 
GeneralRe: overlayered text Pin
Astitva239-Mar-09 8:05
Astitva239-Mar-09 8:05 
Questionunicode application Pin
tom groezer9-Mar-09 4:47
tom groezer9-Mar-09 4:47 
QuestionRe: unicode application Pin
David Crow9-Mar-09 4:49
David Crow9-Mar-09 4:49 
AnswerRe: unicode application Pin
Eytukan9-Mar-09 5:04
Eytukan9-Mar-09 5:04 
GeneralRe: unicode application Pin
tom groezer9-Mar-09 7:03
tom groezer9-Mar-09 7:03 
GeneralRe: unicode application Pin
Eytukan9-Mar-09 7:35
Eytukan9-Mar-09 7:35 
GeneralRe: unicode application Pin
tom groezer9-Mar-09 7:45
tom groezer9-Mar-09 7:45 
GeneralRe: unicode application Pin
Jeremy Falcon9-Mar-09 8:09
professionalJeremy Falcon9-Mar-09 8:09 
Questionsockets in MFC Pin
hrishiS9-Mar-09 2:16
hrishiS9-Mar-09 2:16 
AnswerRe: sockets in MFC Pin
Nishad S9-Mar-09 2:22
Nishad S9-Mar-09 2:22 
GeneralRe: sockets in MFC Pin
hrishiS9-Mar-09 2:38
hrishiS9-Mar-09 2:38 
GeneralRe: sockets in MFC Pin
Nishad S9-Mar-09 2:49
Nishad S9-Mar-09 2:49 
GeneralRe: sockets in MFC Pin
Code-o-mat9-Mar-09 2:47
Code-o-mat9-Mar-09 2:47 

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.