---
title: "Explain about CWinThread class?"  
description: "Explain about CWinThread class?"  
author: "Anonymous User"  
published: 2011-03-28  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/653/explain-about-cwinthread-class  
category: "visual c++"  
tags: ["visual c++"]  
reading_time: 1 minute  

---

# Explain about CWinThread class?

If you want to provide a window to an application it is imperative to create a thread which can be done using CWinThread. A public member variable is used with CWinThread is m_pMainWnd. The main advantage which you can get when using this thread, it terminates the application without any hassles.

## Answers

### Answer by Anonymous User

If you want to provide a window to an application it is imperative to create a thread which can be done using CWinThread. A public member variable is used with CWinThread is m_pMainWnd. The main advantage which you can get when using this thread, it terminates the application without any hassles.


---

Original Source: https://www.mindstick.com/interview/653/explain-about-cwinthread-class

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
