|
|
#5 |
|
Участник
|
Добавьте в класс WinApi следующий метод
X++: static int setWindowLong(HWND _HWND, int _nIndex, int _dwNewLong) { DLL DLL; DLLFunction DLLFunction; ; DLL = new DLL(#UserDLL); DLLFunction = new DLLFunction(DLL,'SetWindowLongA'); DLLFunction.arg(ExtTypes::DWord, ExtTypes::DWord, ExtTypes::DWord); DLLFunction.returns(ExtTypes::DWord); return DLLFunction.call(_HWND, _nIndex, _dwNewLong); } X++: #define.GWL_STYLE (0xFFFFFFF0) #define.WS_SYSMENU(0x00080000) X++: style = winapi::getWindowLong(dialog.dialogForm().formRun().hWnd(),
#GWL_STYLE);
style = style & ~(#WS_SYSMENU);
winapi::setWindowLong(dialog.dialogForm().formRun().hWnd(),
#GWL_STYLE, style);
__________________
Axapta v.3.0 sp5 kr2 |
|
|
|
| За это сообщение автора поблагодарили: Romb (3), SANTAN (1). | |