��Ϸ���ڵ���������ʱʹ��ȫ����� @param dm @param x ���Ͻ�x���� @param y ���Ͻ�y���� @param width ���ڿ��� @param height ���ڸ߶�
(Dm2Java dm,int x,int y,int width,int height)
| 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 | /** |
nothing calls this directly
no test coverage detected