仿照SDK编程写的窗口[3]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 jennyvenus 的 blog

            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

本文关键:none
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top