개정판 e550eccb
issue #000: 화면 이슈로 롤백
Change-Id: I588509fac78c275194fa222cacc5af198532d314
KCOM/Controls/CustomWindow.cs | ||
---|---|---|
152 | 152 |
win.Top = 0 + screen.Bounds.Y; |
153 | 153 |
win.Height = screen.WorkingArea.Height; |
154 | 154 |
}); |
155 |
|
|
156 |
int windowHandle = FindWindow("Shell_TrayWnd", string.Empty); |
|
157 |
|
|
158 |
ShowWindow(windowHandle, SW_SHOW); |
|
159 | 155 |
} |
160 | 156 |
}); |
161 | 157 |
} |
162 |
/// <summary> |
|
163 |
/// SW_HIDE |
|
164 |
/// </summary> |
|
165 |
private const int SW_HIDE = 0; |
|
166 |
|
|
167 |
/// <summary> |
|
168 |
/// SW_SHOW |
|
169 |
/// </summary> |
|
170 |
private const int SW_SHOW = 1; |
|
171 |
|
|
172 |
#region 윈도우 찾기 - FindWindow(className, windowText) |
|
173 |
|
|
174 |
/// <summary> |
|
175 |
/// 윈도우 찾기 |
|
176 |
/// </summary> |
|
177 |
/// <param name="className">클래스명</param> |
|
178 |
/// <param name="windowText">윈도우 텍스트</param> |
|
179 |
/// <returns>윈도우 핸들</returns> |
|
180 |
[DllImport("user32.dll")] |
|
181 |
private static extern int FindWindow(string className, string windowText); |
|
182 |
|
|
183 |
#endregion |
|
184 |
#region 윈도우 표시하기 - ShowWindow(windowHandle, command) |
|
185 |
|
|
186 |
/// <summary> |
|
187 |
/// 윈도우 표시하기 |
|
188 |
/// </summary> |
|
189 |
/// <param name="windowHandle">윈도우 핸들</param> |
|
190 |
/// <param name="command">명령</param> |
|
191 |
/// <returns>처리 결과</returns> |
|
192 |
[DllImport("user32.dll")] |
|
193 |
private static extern int ShowWindow(int windowHandle, int command); |
|
194 |
|
|
195 |
#endregion |
|
158 |
|
|
196 | 159 |
|
197 | 160 |
public System.Windows.Forms.Screen GetOnScreen(Window window) |
198 | 161 |
{ |
KCOM/MainWindow.xaml.cs | ||
---|---|---|
93 | 93 |
//Loaded 이벤트에서 MaxHeight를 설정 모니터가 1개일때만 |
94 | 94 |
//MaxHeight = SystemParameters.WorkArea.Height; |
95 | 95 |
//LocationChanged : 모니터가 2개 이상이고, 모니터의 해상도가 다를 때에 설정 |
96 |
this.LocationChanged += Window_LocationChanged; |
|
96 |
//20240610 LJY 화면 넘어갈때 이슈로 주석 |
|
97 |
//this.LocationChanged += Window_LocationChanged; |
|
97 | 98 |
//cursor change |
98 | 99 |
this.Cursor = new Cursor(App.DefaultArrowCursorStream); |
99 | 100 |
|
내보내기 Unified diff