Currently viewing: GipsySoft » Front Page» Articles

GSMessageBox - Right aligned buttons

The code

GSMSGBOX msg = { 0 };
msg.cbSize = sizeof( msg );
msg.uFlags = GS_MSGBOX_RIGHT_BUTTONS;
(void)GSMessageBox( NULL
	, _T("Right align those darned buttons dammit Janet!")
	, _T("Caption")
	, MB_OKCANCEL | MB_DEFBUTTON2
	, &msg );

Notes

All we do is declare an appropriate structure, set some values and then call the API.

Screenshot