MCPcopy Create free account
hub / github.com/HelloBush/Java_MHXYdemo / GameWindowAdjust

Method GameWindowAdjust

src/pkgAssist/MhxyAssist.java:210–230  ·  view source on GitHub ↗

��Ϸ���ڵ���������ʱʹ��ȫ����� @param dm @param x ���Ͻ�x���� @param y ���Ͻ�y���� @param width ���ڿ��� @param height ���ڸ߶�

(Dm2Java dm,int x,int y,int width,int height)

Source from the content-addressed store, hash-verified

208 * @param height ���ڸ߶�
209 */
210 public static void GameWindowAdjust(Dm2Java dm,int x,int y,int width,int height){
211 if(Dm2Java.isInit){
212 dm.SetWindowState(GB.getHwnd(), 1);
213 dm.SetWindowSize(GB.getHwnd(), width, height);
214 dm.MoveWindow(GB.getHwnd(), x, y);
215 GB.setGx(x);
216 GB.setGy(y);
217 GB.setWidth(width);
218 GB.setHeight(height);
219 //���һ�´��ڣ�����ģ��״̬(���ô�Į�ı䴰�ڴ�С������ģ��)
220 dm.SetWindowState(GB.getHwnd(), 8);
221 dm.UnBindWindow();
222 dm.MoveTo(x+width-5, y+height-5);
223 dm.LeftClick();
224 //���°�
225 if(dm.BindWindow(GB.getHwnd(), "gdi", "windows", "windows", 0)==0){
226 System.out.println("�󶨾��ʧ�ܣ����飡");
227 return;
228 }
229 }
230 }//GameWindowAdjust
231
232
233 /**

Callers

nothing calls this directly

Calls 12

SetWindowStateMethod · 0.80
getHwndMethod · 0.80
SetWindowSizeMethod · 0.80
MoveWindowMethod · 0.80
setGxMethod · 0.80
setGyMethod · 0.80
setWidthMethod · 0.80
setHeightMethod · 0.80
UnBindWindowMethod · 0.80
MoveToMethod · 0.80
LeftClickMethod · 0.80
BindWindowMethod · 0.80

Tested by

no test coverage detected