Digital Clock in Windows Programming

Source: Internet
Author: User

I feel that this clock, in addition to some mathematical knowledge, is still a problem of ing coordinates. Now I have not figured out what is going on.Code

Void setisotropic (HDC, int cxclient, int cyclient) {// set the ing mode to mm_isoropicsetmapmode (HDC, mm_isotropic); // set the Windows window size to 1000*1000, the window cannot be seen. The window data is used to display the setjavaswextex (HDC, null) in the view. // the following two sentences are still not understood and cannot be properly explained, the following-When cyclient is changed to cyclient, the clock will reverse up and down setviewportextex (HDC, cxclient/2,-cyclient/2, null); // setviewportorgex (HDC, cxclient/2, cyclient/2, null );}

Setviewportextex (HDC, cxclient/2,-cyclient/2, null );

Why should we make negative cyclient in this place? Related to drawing? Why is it wrong? Depressed.

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.