Reduced system resource usage.

This commit is contained in:
spx
2011-10-01 06:27:20 +00:00
parent e1aafc9705
commit 6dd79c451d
3 changed files with 6 additions and 39 deletions

View File

@ -230,11 +230,10 @@ CMeterWindow::~CMeterWindow()
*/
int CMeterWindow::Initialize(CRainmeter& Rainmeter)
{
WNDCLASSEX wc = {sizeof(WNDCLASSEX)};
m_Rainmeter = &Rainmeter;
// Register the windowclass
WNDCLASSEX wc = {sizeof(WNDCLASSEX)};
wc.style = CS_NOCLOSE | CS_DBLCLKS;
wc.lpfnWndProc = WndProc;
wc.hInstance = m_Rainmeter->GetInstance();