Imitation QQ pop-up window in the lower right corner NewS _ source code sharing

Source: Internet
Author: User

Source code name:News in the lower right corner of QQ
Source code Author:Deng xuebin)
Development Environment:Visual Studio 2005
Source code description:Win32 (SDK) development, self-painting implementation, supports a variety of skin styles. No other interface library is required.
The disadvantage in the United States is that the line spacing cannot be adjusted. In the GDI operation, there is no ready-made function to be adjusted. You need to calculate it by yourself, so this is left for you to complete.

// Set the skin (Bitmap resource name, title bar text color) bool cnewswindow: setskin (lpctstr lpskinbitmapname, colorref captioncolor = 0x000000); // create a window bool cnewswindow :: create (maid, int nwidth = 250, int nheight = 180); bool cnewswindow: Create (maid, lptstr lpwindowname, int nwidth, int nheight ); // set the news title, content, and link bool cnewswindow: setnews (maid, lptstr lpnewstitle, lptstr lpnewscontent, lptstr lpnewsurl); // display window void cnewswindow: Show (); // set as the main window. After the main window is destroyed, the message loop void cnewswindow: setmainwindow (bool bmainwindow = true) will exit. // you can disable the function automatically. If the function is true, after clicking the link, the window automatically closes void cnewswindow: setautoclose (bool bautoclose = true );

Download source

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: 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.