Files
mql5-skills/skills/mql5/references/docs/31-directx/1068-directx-dxcontextsetsize.md
T
2026-06-23 21:47:51 +08:00

864 B

DXContextSetSize

Changes a frame size of a graphic context created in DXContextCreate().

bool  DXContextSetSize(
   int    context,      // graphic context handle   
   uint&  width,        // width in pixels   
   uint&  height        // height in pixels   
   );

Parameters

context

[in]  Handle for a graphic context created in DXContextCreate().

width

[in]  Frame width in pixels.

height

[in]  Frame height in pixels.

Return Value

In case of successful execution, returns true, otherwise - false. To receive an error code, the GetLastError() function should be called.

Note

A frame size of a graphic context should be changed only between frame renderings.