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?
372 views Asked by GAP At
1
There are 1 answers
Related Questions in MULTITHREADING
- How can I outsource worker processes within a for loop?
- OpenMP & oneTbb difference
- Receiving Notifications for Individual Task Completion OmniThreadLibrary Parallel.ForEach
- C++ error: no matching member function for call to 'enqueue' futures.emplace_back(TP.enqueue(sum_plus_one, x, &M));
- How can I create a thread in Haskell that will restart if it gets killed due to any reason?
- Qt: running callback in the main thread from the worker thread
- Using `static` on a AVX2 counter function increases performance ~10x in MT environment without any change in Compiler optimizations
- Heap sort with multithreading
- windows multithreading CreateMutex
- The problem of "fine-grained locks and two-phase locking algorithm"
- OpenMP multi-threading not working if OpenMPI set to use one or two MPI processor
- WPF Windows Initializing is locking the separated thread in .Net 8
- TCP Client Losing Connection When Writing Data
- vc++ thread constructor throwing compiler error c2672
- ASP.NET Core 6 Web API : best way to pause before resending email
Related Questions in VISUAL-C++
- Visual Studio C++, breakpoints not stopping debugging DLL (GODOT GDExtention)
- MSVC Compiler Template Sizeof...() not working
- Visual Studio C++ Access to path is denied
- How can I use CsvHelper to parse a string into a list of tokens?
- Unable to add request headers via CHttpFile - C++/MFC
- Is there a worked example of using CStrBufT with a CString?
- wxMediaCtrl causes access read violation when loading
- Why do I get weird class method redefinition errors when I compile with Visual C++ 2022?
- How to make VCPKG copies dependencies pdb files in output directory
- Difference between INT_MIN , INT8_MIN , INT16_MIN. For MAX too
- 'pip install mariadb' states that it cannot find include file 'mysql.h' on my Windows 10 dekstop
- Windows Custom Credential Provider is not displaying tile on logon for all users in a pc
- Why does MSVC never return struct in RAX for member-functions?
- Configure target system
- UI Interface Crashes and Hanging Issues in MFC Application
Related Questions in MFC
- Unable to add request headers via CHttpFile - C++/MFC
- Is there a worked example of using CStrBufT with a CString?
- UI Interface Crashes and Hanging Issues in MFC Application
- getting a Win32 console app to work with MFC
- How to create borderless CFrameWnd for SDI application
- How to get real lines count of CEdit control
- MFC Dynamic Layout - Show/Hide Control and adjust other controls out of the way?
- Combobox items not showing when Windows DPI changed
- Printing strings using MFC Edit Control is very slow
- How can an MFC VC++ application execute multiple functions within a single function without hanging or displaying a 'Not Responding' message?
- How to enable scrollbar in a specific group member added
- Resetting dynamic layout controls
- How to set a new height (or width) to a CRect?
- Drawing my own embedded button with CMFCPropertyGridProperty and detecting the button state
- Relative path issue when running programs with Task Scheduler
Related Questions in THREADPOOL
- C++ error: no matching member function for call to 'enqueue' futures.emplace_back(TP.enqueue(sum_plus_one, x, &M));
- Efficiently Handling Large Number of API Calls with Delphi 10.4 and OmniThreadLibrary
- RedisConnectionFailureException intermittently
- Java custom ThreadPool - pause task submission and cancel current queued tasks
- DataInputStream not recognising input
- Why is publishDir not copying large directories?
- asio using both coroutine and thread_pool issue
- The infinite loop to make the connection with opcua server, regardless of disconnecting the client
- Tcl Thread: Why this ten lines don't commit in parallel?
- ThreadPoolExecutor too fast for CPU bound task
- Handling a thread crash
- Why do I see this error "org.springframework.core.task.TaskRejectedException" when using Spring Framework 5.3.2?
- Can using a CPU with higher computing power necessarily reduce the number of required logical cores under the same load?
- How does the ThreadPool decide which type of thread to use for a work item
- std::thread move problem (use member function)
Related Questions in UI-THREAD
- Android main(UI) thread freezing when running many Runnables on singleThreadExecutor
- A large amount of data posts into main thread android app
- How to wait for an element to be visible with time out in WebView2 in .NET 6.0. Specifically how to access UI thread
- Alternative to closure-style to execute code in UI thread
- JavaFX avoiding locking UI during long running operations with mixed UI and not UI elements
- Serialization of Access to UI Thread in MAUI
- runOnUiThread executes after waiting 30 seconds
- How to Guarantee Equivalent Behavior of `await` from `ContinueWith` in both UI and Non-UI Code
- Understand Threading in Android(Update UI from another thread)
- WinForm Task.Wait : why is it blocking the UI?
- Using C++ Builder and the MainUI thread for feedback
- onPostExcute executed before doInbackground in asynctask
- UI stops when alertdiolog pops up from screen off in Android
- Dynamic vertical RecyclerView inside viewHolder of vertical recyclerview causes outer RecyclerView to lag on first scroll
- Issue in rendering items in the main thread from a worker thread
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?
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)
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.