Click here to Skip to main content
15,569,644 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: AfxBeginThread and ON_THREAD_MESSAGE does not work using PostThreadMessage Pin
No Name No Name No Name6-Apr-10 18:56
No Name No Name No Name6-Apr-10 18:56 
AnswerRe: AfxBeginThread and ON_THREAD_MESSAGE does not work using PostThreadMessage Pin
ramana.g6-Apr-10 19:26
ramana.g6-Apr-10 19:26 
GeneralRe: AfxBeginThread and ON_THREAD_MESSAGE does not work using PostThreadMessage Pin
sthalasayanam6-Apr-10 19:43
sthalasayanam6-Apr-10 19:43 
AnswerRe: AfxBeginThread and ON_THREAD_MESSAGE does not work using PostThreadMessage Pin
Rajesh R Subramanian7-Apr-10 1:16
professionalRajesh R Subramanian7-Apr-10 1:16 
AnswerRe: AfxBeginThread and ON_THREAD_MESSAGE does not work using PostThreadMessage Pin
David Crow7-Apr-10 4:05
David Crow7-Apr-10 4:05 
AnswerRe: AfxBeginThread and ON_THREAD_MESSAGE does not work using PostThreadMessage Pin
Vaclav_7-Apr-10 7:26
Vaclav_7-Apr-10 7:26 
GeneralRe: AfxBeginThread and ON_THREAD_MESSAGE does not work using PostThreadMessage Pin
Vaclav_7-Apr-10 7:36
Vaclav_7-Apr-10 7:36 
AnswerRe: AfxBeginThread and ON_THREAD_MESSAGE does not work using PostThreadMessage Pin
Vaclav_7-Apr-10 9:01
Vaclav_7-Apr-10 9:01 
"Progress" report:
I have managed to execute an equivalent of "worker thread function" located in the UI thread class.
Two problems:
1. It needs access to document and it asserts there. I am working on why.
2. The big one:
If I temporary bypass the code( won't work witout the document) and just do an infinite loop ( even with some Sleep in it) I cannot click the UI button! That means only one thing - the OS is too busy letting the main thread messages thru! That is not what I was after in the first place!

If I continue with multithreaded approach (just for kiks) I need to write some more code! Joy!?
QuestionReset to computer Pin
RomTibi6-Apr-10 10:57
RomTibi6-Apr-10 10:57 
QuestionRe: Reset to computer Pin
David Crow6-Apr-10 11:04
David Crow6-Apr-10 11:04 
AnswerRe: Reset to computer Pin
RomTibi6-Apr-10 11:24
RomTibi6-Apr-10 11:24 
AnswerRe: Reset to computer Pin
David Crow6-Apr-10 11:26
David Crow6-Apr-10 11:26 
GeneralRe: Reset to computer Pin
RomTibi7-Apr-10 6:29
RomTibi7-Apr-10 6:29 
AnswerRe: Reset to computer Pin
Eugen Podsypalnikov6-Apr-10 11:07
Eugen Podsypalnikov6-Apr-10 11:07 
GeneralRe: Reset to computer Pin
RomTibi7-Apr-10 6:29
RomTibi7-Apr-10 6:29 
AnswerShutdown -r Pin
gamefreak22916-Apr-10 12:07
gamefreak22916-Apr-10 12:07 
GeneralRe: Shutdown -r Pin
RomTibi7-Apr-10 6:30
RomTibi7-Apr-10 6:30 
QuestionVisual C++ Solution in GCC Pin
darc koder6-Apr-10 8:12
darc koder6-Apr-10 8:12 
AnswerRe: Visual C++ Solution in GCC Pin
Maximilien6-Apr-10 9:57
Maximilien6-Apr-10 9:57 
AnswerRe: Visual C++ Solution in GCC Pin
CPallini6-Apr-10 10:44
mveCPallini6-Apr-10 10:44 
AnswerRe: Visual C++ Solution in GCC Pin
David Crow6-Apr-10 11:07
David Crow6-Apr-10 11:07 
QuestionVertical/Horizontal scroll bar not coming in CListCtrl Pin
_T("No name")6-Apr-10 4:45
_T("No name")6-Apr-10 4:45 
AnswerRe: Vertical/Horizontal scroll bar not coming in CListCtrl Pin
_T("No name")6-Apr-10 4:50
_T("No name")6-Apr-10 4:50 
Questionbm_setstate redraw not working Pin
Jach Mullan6-Apr-10 0:57
Jach Mullan6-Apr-10 0:57 
AnswerRe: bm_setstate redraw not working Pin
Eugen Podsypalnikov6-Apr-10 2:58
Eugen Podsypalnikov6-Apr-10 2:58 

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.