Tham khảo tài liệu 'autoi technology curriculum book part 81', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | DllStructGetPtr SstRect int SnType int SnState SstRect 0 EndFunc DrawFrameControl Func DrawFocusRect ShDC SnLeft SnTop SnRight SnBottom Local SstRect DllStructCreate int int int int DllStructSetData stRect 1 SnLeft DllStructSetData stRect 2 SnTop DllStructSetData stRect 3 SnRight DllStructSetData stRect 4 SnBottom DllCall int DrawFocusRect hwnd ShDC ptr Dll StructGetPtr SstRect SstRect 0 EndFunc DrawFocusRect Func DrawText ShDC SsText SnLeft SnTop SnRight SnBottom SnFormat Local SnLen StringLen SsText Local SstRect DllStructCreate int int int int DllStructSetData SstRect 1 SnLeft DllStructSetData SstRect 2 SnTop DllStructSetData SstRect 3 SnRight DllStructSetData SstRect 4 SnBottom Local SstText DllStructCreate char 260 DllStructSetData SstText 1 SsText DllCall int DrawText hwnd ShDC ptr DllStructGetPtr SstText int SnLen ptr DllStructGetPtr SstRect int SnFormat SstRect 0 SstText 0 EndFunc DrawText Func FillRect ShDC SnLeft SnTop SnRight SnBottom ShBrush Local SstRect DllStructCreate int int int int DllStructSetData SstRect 1 SnLeft DllStructSetData SstRect 2 SnTop DllStructSetData SstRect 3 SnRight DllStructSetData SstRect 4 SnBottom DllCall int FillRect hwnd ShDC ptr DllStructGetPtr SstRect hwnd ShBrush SstRect 0 EndFunc FillRect Func FrameRect ShDC SnLeft SnTop SnRight SnBottom ShBrush Local SstRect DllStructCreate int int int int DllStructSetData SstRect 1 SnLeft DllStructSetData SstRect 2 SnTop DllStructSetData SstRect 3 SnRight DllStructSetData SstRect 4 SnBottom DllCall int FrameRect hwnd ShDC ptr DllStructGetPtr SstRect hwnd ShBrush SstRect 0 EndFunc FrameRect Func InflateRect ByRef SnLeft ByRef SnTop ByRef SnRight ByRef SnBottom SnX SnY Local SstRect DllStructCreate int int int int DllStructSetData SstRect 1 SnLeft DllStructSetData SstRect 2 SnTop DllStructSetData SstRect 3 SnRight DllStructSetData SstRect 4 SnBottom DllCall int InflateRect ptr DllStructGetPtr SstRect int SnX mt SnY SnLeft .