In MFC the UI related operation (Draw paint) can be performed in worked thread? My problem is as of now the main thread is taking lot of time in drawing the UI related items. But if i can delegate the UI drawing related operation to worked thread section by section the main thread becomes free so that the remaining part of the application which is done with drawing can be used by user. Is this possible?
In MFC the UI related operation (Draw paint) can be performed in worked thread?
371 Views Asked by GAP At
1
There are 1 best solutions below
Related Questions in MULTITHREADING
- new thread blocks main thread
- WPF MessageBox Cancel checkbox check
- How to avoid concurrent access to a resource?
- run oncomplete event in async
- Threading Segfault when reading members
- Function timeouts in C and thread
- How are multiple requests to Task.Run handled from a resource management standpoint?
- Acumatica perfomance with threads
- Wait and Notify in Java threads for a given interval
- Different behavior of async with Visual Studio 2013(Windows8.1) and GCC 4.9(Ubuntu14.10)
- How to return blocking queue to the right object?
- background thread using Task.Run
- deletion and cleanup of worker thread in Qt crashes
- Pipeline-like operation using TChan
- implementing in app purchase on android
Related Questions in VISUAL-C++
- I want to be able to use 4 different variables in a select statement in c ++
- llvm headers do not compile under msvc 2013
- VC++ .net: Functionality from managed DLL is not exported
- Add a picture to Picture Control in a dialog box (error RC2108: expected numerical dialog constant)
- Within a .vcxproj file what are the possible values for the <ConfigurationType> and what do those values mean?
- converting string to a double in visual c++ by parsing
- How to integrate opencv C++ codings with windows application?
- Create string with ESC characters
- What does the thing between "class" and the class name in VC++ mean?
- How to assign (Root)Folder ID in C++? Wherein, those files and folder under it would have the same ID as the RootFolder
- How to convert CString to long? VC++
- How to initialize a String^ *
- How to correctly implement methods of a class returning "this" in Managed C++?
- Non-managed referenced code strangely, "magically" changes its state for no reason when wrapped in managed
- Windows application using libusb: runtime error due to mutex lock
Related Questions in MFC
- Cannot "Go To Definition" in Visual C++ 2013
- reset mdi child view position
- Add a picture to Picture Control in a dialog box (error RC2108: expected numerical dialog constant)
- Background color for controls in MFC C++ is unable to set
- variable global const "macros" in C++ and optimal design patterns
- Converting long double to CString
- postmessage and message loop in different thread
- How to convert CString to long? VC++
- Can a dialog intercept drag'n'drop messages passed to its controls?
- Can I close (note, not terminate) a user process from a service by its PID?
- How can I have a multi-line item in a ListControl MFC?
- Getting the messages back to the same command line from where the MFC application was launched
- MFC - How to set the toolbar title?
- MFC SetTitle() causing weird debug assertion
- Application logs on the command prompt from where application is being launched
Related Questions in THREADPOOL
- How to run Parallel tasks inside parallel tasks
- Does the JVM limit the number of threads an Executor can run?
- Change delay of one thread in threadpool
- WCF not handle 1000 call per second
- Is it necessary to end a ThreadPool on Application.Exit()?
- Thread Join() causes Task.RunSynchronously not to finish
- Waiting for ThreadPool to finish
- Python code not executing in order? MySQLdb UPDATE commits in unexpected order
- How to use thread lock inside a buffered reader loop
- Conditional delayed processing
- In MFC the UI related operation (Draw paint) can be performed in worked thread?
- Exception error using C++ Thread Pool Library (CTPL)
- Stack trace of the application specific java threads
- Python: passing Pool objects to a function in different process
- construction of thread using lambda expression
Related Questions in UI-THREAD
- In MFC the UI related operation (Draw paint) can be performed in worked thread?
- Alert Dialog on work thread
- Getting cross thread Error even Used Invoke
- how to call UI or UI thread in doInBackground method
- How does call app works when the call app is removed from task list (aka Overview screen) in Android?
- Can't create handler inside thread that has not called Looper.prepare()3
- From a API stand point, wait for a task -- but don't block UI
- Android: what does "it is not allowed to update UI from a non-ui thread" mean?
- F# cross-thread UI exception in WinForms App
- Forcing class methods to be called from ui thread
- Android UI render time
- IsGUIThread -- What does it do?
- Silverlight UI Thread Freezing
- Null Pointer Exception: setinput function for Xmlpullparser assigning null value with StringReader
- Trying to establish best practices for SharedPreferences
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You should do the opposite. In general the main application thread should be used for GUI stuff only as it has Windows Message Pump by default. The rest of work should be done in threads.