Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 30, 2019. It is now read-only.
/SharpDXPublic archive

Commitea09f03

Browse files
author
AndrewSt
committed
[Desktop] fix OnMonitorChanged
1 parentee1a4a2 commitea09f03

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎Source/SharpDX.Desktop/RenderForm.cs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public class RenderForm : Form
7171
privateconstuintPBT_APMQUERYSUSPEND=0;
7272
privateconstintSC_MONITORPOWER=0xF170;
7373
privateconstintSC_SCREENSAVE=0xF140;
74+
privateconstintWM_DISPLAYCHANGE=0x007E;
7475
privateconstintMNC_CLOSE=1;
7576
privateSystem.Drawing.SizecachedSize;
7677
privateFormWindowStatepreviousWindowState;
@@ -435,6 +436,9 @@ protected override void WndProc(ref Message m)
435436
}
436437
}
437438
break;
439+
caseWM_DISPLAYCHANGE:
440+
OnMonitorChanged(EventArgs.Empty);
441+
break;
438442
}
439443

440444
base.WndProc(refm);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp