| Private Sub Form_Load()
Dim window_style As Long
    window_style = GetWindowLong(Picture1.hwnd, GWL_STYLE)
    window_style = window_style Or WS_THICKFRAME
    SetWindowLong Picture1.hwnd, GWL_STYLE, window_style
    SetWindowPos Picture1.hwnd, hwnd, 0, 0, 0, 0, _
        SWP_NOZORDER Or SWP_NOSIZE Or SWP_NOMOVE Or _
            SWP_DRAWFRAME
    window_style = GetWindowLong(Picture2.hwnd, GWL_STYLE)
    window_style = window_style Or WS_THICKFRAME
    SetWindowLong Picture2.hwnd, GWL_STYLE, window_style
    SetWindowPos Picture2.hwnd, hwnd, 0, 0, 0, 0, _
        SWP_NOZORDER Or SWP_NOSIZE Or SWP_NOMOVE Or _
            SWP_DRAWFRAME
End Sub |