Currently viewing: GipsySoft » Front Page» QHTM

How to add borders onto a QHTM control

Adding borders to a QHTM control is quite straightforward.

You can either add borders when you create the control by adding the border styles you need or you can dynamically add borders using the SetWindowLong(...) API.

Below is an extract from the API example.

HWND hwndQHTM = GetDlgItem( hwnd, IDC_HTML );
SetWindowLong( hwndQHTM, GWL_EXSTYLE,
		GetWindowLong( hwndQHTM, GWL_STYLE ) | WS_EX_CLIENTEDGE );