Click here to Skip to main content
16,006,442 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can I assigned the child window toolbar to the pager control? Pin
ElizabethC7-Jul-03 8:05
ElizabethC7-Jul-03 8:05 
GeneralRe: How can I assigned the child window toolbar to the pager control? Pin
Magnus Westin7-Jul-03 10:57
Magnus Westin7-Jul-03 10:57 
GeneralRe: How can I assigned the child window toolbar to the pager control? Pin
ElizabethC7-Jul-03 12:16
ElizabethC7-Jul-03 12:16 
QuestionWhere is the best place to create the pager control for the application? Pin
ElizabethC3-Jul-03 7:06
ElizabethC3-Jul-03 7:06 
GeneralMultithread question Pin
achandra0073-Jul-03 6:14
achandra0073-Jul-03 6:14 
GeneralRe: Multithread question Pin
RobJones3-Jul-03 6:17
RobJones3-Jul-03 6:17 
GeneralRe: Multithread question Pin
achandra0073-Jul-03 6:33
achandra0073-Jul-03 6:33 
GeneralRe: Multithread question Pin
RobJones3-Jul-03 6:42
RobJones3-Jul-03 6:42 
I havent compiled any of this so there could be mistakes.. This will allow your threads to post messages to the main GUI..

// In your .cpp after the includes..
#define UWM_THREAD_A_DONE WM_APP+1
#define UWM_THREAD_B_DONE WM_APP+2
 
// In your .cpp MessageMap
ON_MESSAGE(UWM_THREAD_A_DONE, OnThreadADone)
ON_MESSAGE(UWM_THREAD_B_DONE, OnThreadBDone)
 
// In your .h
LRESULT OnThreadADone (WPARAM wParam, LPARAM lParam);
LRESULT OnThreadBDone (WPARAM wParam, LPARAM lParam);
 
// Functions for receiving the PostMessage (in .cpp)
// Received a Thread A Done message..
LRESULT CMainFrame::OnThreadADone(WPARAM wParam, LPARAM lParam)
{
	// Do what ever you want.. Thread A has closed..
	return TRUE;
}
 
// Received a Thread B Done message..
LRESULT CMainFrame::OnThreadBDone(WPARAM wParam, LPARAM lParam)
{
	// Do what ever you want.. Thread B has closed..
	return TRUE;
}
 
Inside the Thread "A" do a PostMessage(UWM_THREAD_A_DONE,0,0);


Hope it helps..
Rob

Whoever said nothing's impossible never tried slamming a revolving door!
GeneralRe: Multithread question Pin
John M. Drescher3-Jul-03 6:29
John M. Drescher3-Jul-03 6:29 
GeneralRe: Multithread question Pin
achandra0073-Jul-03 6:40
achandra0073-Jul-03 6:40 
GeneralRe: Multithread question Pin
RobJones3-Jul-03 6:53
RobJones3-Jul-03 6:53 
GeneralRe: Multithread question Pin
John M. Drescher3-Jul-03 6:57
John M. Drescher3-Jul-03 6:57 
GeneralPeer to Peer network implementation in V C++ Pin
EEder3-Jul-03 5:46
EEder3-Jul-03 5:46 
GeneralRe: Peer to Peer network implementation in V C++ Pin
AlexO3-Jul-03 7:03
AlexO3-Jul-03 7:03 
GeneralRe: Peer to Peer network implementation in V C++ Pin
EEder3-Jul-03 8:14
EEder3-Jul-03 8:14 
Questionhow to change float to char* Pin
Angel Kid3-Jul-03 5:40
Angel Kid3-Jul-03 5:40 
AnswerRe: how to change float to char* Pin
AlexO3-Jul-03 5:44
AlexO3-Jul-03 5:44 
GeneralThanks Pin
Angel Kid3-Jul-03 5:58
Angel Kid3-Jul-03 5:58 
GeneralRe: how to change float to char* Pin
Ryan Binns3-Jul-03 15:39
Ryan Binns3-Jul-03 15:39 
AnswerRe: how to change float to char* Pin
Harald Krause3-Jul-03 5:48
Harald Krause3-Jul-03 5:48 
GeneralThanks Pin
Angel Kid3-Jul-03 5:59
Angel Kid3-Jul-03 5:59 
AnswerRe: how to change float to char* Pin
John M. Drescher3-Jul-03 6:04
John M. Drescher3-Jul-03 6:04 
GeneralConvert BSTR to char* Pin
RvD20023-Jul-03 5:18
sussRvD20023-Jul-03 5:18 
GeneralRe: Convert BSTR to char* Pin
Ryan Binns3-Jul-03 5:27
Ryan Binns3-Jul-03 5:27 
GeneralRe: Convert BSTR to char* Pin
RvD20023-Jul-03 6:36
sussRvD20023-Jul-03 6:36 

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.