You cannot use setdcbrushcolor undeclared identifier.

Source: Internet
Author: User

Set

# DEFINE _ win32_winnt 0x0501

Add to you # include Before

If it is an MFC project, add it to the beginning of # include.

This function can only be supported in windows and later versions.
Therefore, platform SDK adopts this method. You must display and define a macro in the program to tell the Windows version of the platform SDK program to run so that you can use the macro definitions and function
In fact, # DEFINE _ win32_winnt 0x0500 can be used (Win2000)
You can see this definition in wingdi. h.
# If (_ win32_winnt> = 0x0500)
# Define dc_brush 18
# Define dc_pen 19
# Endif

# If (_ win32_winnt> = 0x0500)
Wingdiapi colorref winapi setdcbrushcolor (HDC, colorref );
Wingdiapi colorref winapi setdcpencolor (HDC, colorref );
# Endif

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.