Exemplo n.º 1
0
 private void DisableTransparentByDWM()
 {
     // 枠のみGlassにする
     //	※ 本来のウィンドウが何らかの範囲指定でGlassにしていた場合は、残念ながら表示が戻りません
     DwmApi.MARGINS margins = new DwmApi.MARGINS(0, 0, 0, 0);
     DwmApi.DwmExtendFrameIntoClientArea(hWnd, margins);
 }
Exemplo n.º 2
0
 private void EnableTransparentByDWM()
 {
     // 全面をGlassにする
     DwmApi.DwmExtendIntoClientAll(hWnd);
 }