222
223 m_opaque = TRUE;
224 m_opacity = 0xff;
225
226
227 warningString = NULL;
228 warningWindow = NULL;
229 securityTooltipWindow = NULL;
230 securityWarningAnimationStage = 0;
231 currentWmSizeState = SIZE_RESTORED;
232
233 hContentBitmap = NULL;
234
235 ::InitializeCriticalSection(&contentBitmapCS);
236
237 m_windowType = NORMAL;
238 m_alwaysOnTop = false;
239
240 fullScreenExclusiveModeState = FALSE;
241 m_winSizeMove = FALSE;
242 prevScaleRec = { -1, -1, -1 };
243 }
244
245 AwtWindow::~AwtWindow()
246 {
247 if (warningString != NULL) {
248 delete [] warningString;
249 }
250 DeleteContentBitmap();
251 ::DeleteCriticalSection(&contentBitmapCS);
252 }
253
254 void AwtWindow::Dispose()
255 {
256 // Fix 4745575 GDI Resource Leak
257 // MSDN
258 // Before a window is destroyed (that is, before it returns from processing
259 // the WM_NCDESTROY message), an application must remove all entries it has
260 // added to the property list. The application must use the RemoveProp function
261 // to remove the entries.
262
|
222
223 m_opaque = TRUE;
224 m_opacity = 0xff;
225
226
227 warningString = NULL;
228 warningWindow = NULL;
229 securityTooltipWindow = NULL;
230 securityWarningAnimationStage = 0;
231 currentWmSizeState = SIZE_RESTORED;
232
233 hContentBitmap = NULL;
234
235 ::InitializeCriticalSection(&contentBitmapCS);
236
237 m_windowType = NORMAL;
238 m_alwaysOnTop = false;
239
240 fullScreenExclusiveModeState = FALSE;
241 m_winSizeMove = FALSE;
242 prevScaleRec.screen = -1;
243 prevScaleRec.scaleX = -1.0f;
244 prevScaleRec.scaleY = -1.0f;
245 }
246
247 AwtWindow::~AwtWindow()
248 {
249 if (warningString != NULL) {
250 delete [] warningString;
251 }
252 DeleteContentBitmap();
253 ::DeleteCriticalSection(&contentBitmapCS);
254 }
255
256 void AwtWindow::Dispose()
257 {
258 // Fix 4745575 GDI Resource Leak
259 // MSDN
260 // Before a window is destroyed (that is, before it returns from processing
261 // the WM_NCDESTROY message), an application must remove all entries it has
262 // added to the property list. The application must use the RemoveProp function
263 // to remove the entries.
264
|