Click here to Skip to main content
15,911,531 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CEdit -> Caption Title??? Pin
Selvam R12-Feb-04 23:58
professionalSelvam R12-Feb-04 23:58 
GeneralMDIChild creation from dll Pin
Member 40856112-Feb-04 15:11
Member 40856112-Feb-04 15:11 
GeneralAdd popup menu to FrameWnd from DLL, unpredictable ID, cannot use message map. Pin
lxy12-Feb-04 13:52
lxy12-Feb-04 13:52 
GeneralRe: Add popup menu to FrameWnd from DLL, unpredictable ID, cannot use message map. Pin
Roger Allen13-Feb-04 3:14
Roger Allen13-Feb-04 3:14 
GeneralRe: Add popup menu to FrameWnd from DLL, unpredictable ID, cannot use message map. Pin
lxy16-Feb-04 22:21
lxy16-Feb-04 22:21 
GeneralKeeping startbar visible Pin
Chanbara12-Feb-04 13:38
Chanbara12-Feb-04 13:38 
GeneralSystemParametersInfo & SPI_SETMENUSHOWDELAY Pin
GregH12-Feb-04 11:29
GregH12-Feb-04 11:29 
GeneralSoftware routing... Pin
Shashidhar Kamath12-Feb-04 11:25
Shashidhar Kamath12-Feb-04 11:25 
GeneralRe: Software routing... Pin
valikac12-Feb-04 12:13
valikac12-Feb-04 12:13 
GeneralRe: Software routing... Pin
Shashidhar Kamath12-Feb-04 12:24
Shashidhar Kamath12-Feb-04 12:24 
GeneralRe: Software routing... Pin
22491712-Feb-04 16:39
22491712-Feb-04 16:39 
GeneralRe: Software routing... Pin
Shashidhar Kamath13-Feb-04 7:08
Shashidhar Kamath13-Feb-04 7:08 
GeneralRe: Software routing... Pin
22491713-Feb-04 18:03
22491713-Feb-04 18:03 
GeneralRe: Software routing... Pin
Shashidhar Kamath17-Feb-04 7:02
Shashidhar Kamath17-Feb-04 7:02 
GeneralWaitableTimer Question Please help Pin
msrajan12-Feb-04 10:20
msrajan12-Feb-04 10:20 
GeneralRe: WaitableTimer Question Please help Pin
valikac12-Feb-04 12:19
valikac12-Feb-04 12:19 
QuestionActive X object security with CDHtmlDialog? Pin
Jim Howard12-Feb-04 9:35
Jim Howard12-Feb-04 9:35 
GeneralCListCtrl header alignment Pin
vancouver77712-Feb-04 9:01
vancouver77712-Feb-04 9:01 
Questionfprintf allowed in main dialog? Pin
rmnowick12-Feb-04 8:42
rmnowick12-Feb-04 8:42 
AnswerRe: fprintf allowed in main dialog? Pin
rmnowick12-Feb-04 9:19
rmnowick12-Feb-04 9:19 
GeneralRe: fprintf allowed in main dialog? Pin
David Crow13-Feb-04 4:02
David Crow13-Feb-04 4:02 
GeneralUpdating View from WinThread Pin
J Guds12-Feb-04 8:01
J Guds12-Feb-04 8:01 
GeneralRe: Updating View from WinThread Pin
David Crow12-Feb-04 8:16
David Crow12-Feb-04 8:16 
GeneralRe: Updating View from WinThread Pin
chifor13-Feb-04 4:07
chifor13-Feb-04 4:07 
I suggest you to take a luck at example from “msdn” documentation “MTMDI” that demonstrates an MFC User Interface Thread. For avoiding potential problems when programming multithreaded applications you need to respect some rolls or programming tips that is also described in “mfc” documentation.
Ex: - You can't have two threads manipulating the same object.., if you need this you need to protect such access with appropriate Win32 synchronization mechanisms...
- A thread can access only MFC objects that it created, a worker thread cannot perform a calculation and then call a document’s “UpdateAllViews” member function to have the windows that contain views on the new data modified, because the map from CWnd objects to HWNDs is local to the primary thread. There are several ways around this problem: you can pass individual handles (such as an HWND) rather than C++ objects to the worker thread, or you can create new user-defined messages corresponding to the different tasks your worker threads will be performing and post these messages to the application’s main window using PostMessage.

If this little help is not enough for your problem send me a sample of your code and I will help you.

CC.
GeneralMissing SysTray Icon in Win2k Pin
DazedAndConfused12-Feb-04 6:49
DazedAndConfused12-Feb-04 6:49 

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.