user3074200
user3074200

Reputation: 19

Progress bar control......between two dialog

My application is based on serial communication. It has main dialog window, from this we can select three options pump,crind and kiosk. When i choose any one say pump, then small dialog is called (CommonResponse)with progress bar and getting time of pump from command files.This small window is on separate thread created as worker thred. Now i want this small window with progress bar is on main thread but in background serial communication should be going on......How to do and steps for doing this?

One option for doing this is instead of progress bar, serial communication is on separate thread.But it is very time consuming process now because all things are ready only this part we want to change.... Thank you in advnce!!!

Upvotes: 0

Views: 62

Answers (1)

xMRi
xMRi

Reputation: 15375

Just pass a handle to your main thread window to the background thread.

Use PostMessaage to send a private message that informs the main thread about the progress. The main thread can decode it and set the embedded progress bar to the value you want and need.

Upvotes: 2

Related Questions