打印本文 打印本文 关闭窗口 关闭窗口
仿照SDK编程写的窗口
作者:武汉SEO闵涛  文章来源:敏韬网  点击数1889  更新时间:2009/4/23 18:59:37  文章录入:mintao  责任编辑:mintao
p;           hdc = BeginPaint(handle_of_window, ps)
            Call GetClientRect(handle_of_window, rc)
            str = "hello, world!"
            Call DrawText(hdc, str, Len(str), rc, DT_SINGLELINE Or DT_CENTER Or DT_VCENTER)
            Call EndPaint(handle_of_window, ps)
            Exit Function
   
        ''''Case WM_KEYDOWN
        ''''    Call PostMessage(handle_of_window, WM_CLOSE, 0, 0)
        ''''    Exit Function
           
        Case WM_DESTROY
            PostQuitMessage 0&
            Exit Function
           
        Case Else
            WindowProc = DefWindowProc(handle_of_window, message, wParam, lParam)
    End Select
End Function
 
Function GetFuncPtr(ByVal lngFnPtr As Long) As Long
    GetFuncPtr = lngFnPtr
End Function

上一页  [1] [2] 

打印本文 打印本文 关闭窗口 关闭窗口