Kingsoft guard Interface source code explanation and interface library separation (appendix)-you can ask me a question

Source: Internet
Author: User

I. How to compile vs2005, vs2008, and vs2010?

Because my version is vs2003, the compiled lib seems to be in conflict with other versions. Therefore, use the above version to compile kuilib/kscbase. vcproj project, and put the generated lib into kuilib/lib, then you can compile the example program. Note that kuilib/kuilib. vcproj does not need to be compiled.

 

Ii. How can I not find kuimsgbox. cpp? The compilation of kuilib. vcproj fails?

Please refer to the first article, kuilib. vcproj does not need to be compiled, kuiapp. CPP, kuiwnd. CPP, kuimsgbox. CPP is no longer required. It has been cleared in the latest version. See the first article.

 

3. How can I move a widget in a program?

Set POS attributes, such as setitemattribute (101, "POS", "100,100 ");

 

4. What software is used to compress modified resources into the zip package?

You can use any software that supports packaging ZIP files.

 

V. problems encountered when compiling kuilib in vc02010 Compiler

See article 2.

 

6. The database version named Kui is too old and will not be updated later. Let's take a look at bkwin's version.

The latest version has already referred to bkwin and merged the improved code. Therefore, this will combine the advantages of both.

 

7. How can I generate a Kui file and rename the XML file directly?

Kui is the resource file used by the UI library of Kingsoft guard. It is in ZIP format. Use a software package that supports zip.

 

8. How to obtain the latest version

Use SVN to download the latest version of the program, https://openkui.googlecode.com/svn/trunk

 

9. How to respond to system messages? In the current example, neither alt nor F4 can be closed. Can I right-click the task bar and choose pop-up menu to close it?

The response can be sent to the onsyscommand in the main window. The latest Code in article 8 contains related examples.

However, you need to implement the right-click menu by yourself. You can directly bring up the system menu.

 

10. How can I maximize/restore the title bar of a window by double-clicking the mouse?

Related examples have been added in the latest code. By setting the XML window style, you can add resize = "1" in the window layer node attribute. You can also add button image updates in the main window, it is implemented by processing onsyscommand. The instance has been added to sample4_tab in the latest code.

 

11. How can I center the display at the beginning of the program?

Add centerwindow () in lresult cmainwnd: oninitdialog (hwnd hdlg, lparam ();

 

12. How can I change the position of the Form? I can't use Windows APIs?

Cmainwnd is a common window, so you can definitely use the window API. Instead, you can directly use movewindow in cmainwnd: oninitdialog (hwnd hdlg, lparam. If it is a subwindow, please refer to the third question.

 

13. How can I hide the display form?

For more information, see "12. showwindow (sw_hide)". If you are talking about a subwindow control, you can set properties. Sample Code has been added in sample2 in the latest code.

 

14. How can I drag the page size?

The latest SVN code has been implemented. But it is not perfect.

 

 

 

 

Latest Version r52, https://openkui.googlecode.com/svn/trunk

 

I will summarize the above questions for the moment. If you have any questions, you can directly raise them. I will follow up in this article. Thank you.

 

 

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.