1 2 3 4 5 6 7 8 9 10 11
|
// Déclarations nécessaires pour charger la fonction
typedef HRESULT (WINAPI *t_DwmExtendFrameIntoClientArea)(HWND, const MARGINS*);
static t_DwmExtendFrameIntoClientArea f_DwmExtendFrameIntoClientArea = 0;
// On charge la fonction
QLibrary dwmapi("dwmapi");
f_DwmExtendFrameIntoClientArea = (t_DwmExtendFrameIntoClientArea)dwmapi.resolve("DwmExtendFrameIntoClientArea");
// On peut ensuite appeler la fonction comme une fonction standard
f_DwmExtendFrameIntoClientArea(winId(), myMargins); |