I dotnet so I SKIN (WinForm control again)
Small gas god 2002-02-15
Article Type: in-depth
Difficult Level: 6/9
Version: 1.10
Everyone, don't laugh, I think it is good. If I find any interesting control or source code like today, I will rise like this title "I dotnet, so what I (Winform control is also selected)", if no There is called "another choice." In short, if there is, I will collect it, experiment it, or if you can write it out and share it with all interested people.
In the network, you can experience and feel exciting innovative ideas and speeds in reality. In the past, this innovation is reflected in the software itself, and now the software or code has become a medium, often through it, we can see another one Innovative ideas and individuals, the software industry has continued to grow in this innovation, and each individual is also encouraged, willing to be one of them. Business and network catalyzes and accelerate this process, so far to let you surprised and welcome you, so we are engaged in "the best and hardest care in this world".
The topic wants to start from the CWTAB of the previous article, after a few days, I found it on CodeProject, and try to debug it at RTM, which will be a painful process, although the return is Familiar with how to create a control process and the joy of BUG, but a process from Beta1 to RTM to a certain degree and struggle. However, many things will have additional returns, otherwise the next time is a failure and betting. For example, this time I found the so-called helplessness of the DOTNET, maybe it's not like we have heard and thought, DOTNET interoperability has a bounded limit, which will drive you like a pointer outside of it. Precious situ. If you are familiar with C or C , it's easy to know what the following code is doing, and you will find a corresponding C source code. However, in RTM to debug through this code is a challenge. The programming under the original and DOTNET is two environment, and they have their own different territories, and the developers who are free to enter the two are happiness. People who can clearly know this boundaries will be happy for most for most. But in the end, I still bid farewell to the array to reread, and there is an effective way to interpret it outside the concept.
Private Unsafe Bool FillColortable (int HDC, int hpal, ref apimethods.bitmapinfo_flat tbitinfo)
{
BOOL BRET = FALSE;
Byte [] aj = new byte [sizeof (apimethods.paletteentry) * 256];
Int ncolors;
Fixed (apimethods.rgbquad * prgb = (apimethods.rgbquad *) & tbitinfo.bmicolors [0])
{
Fixed (apimethods.paletteentry * lppe = (apimethods.paletteentry *) & aj [0])
{
Ncolors = 1 << Tbitinfo.Bmiheader_BIBITCOUNT;
IF (ncolors <= 256)
{
Int hPalret;
IF (hpal == apimethods.nullin)
HPALRET = apimethods.getsystempaletteentries (HDC, 0, NCOLORS, AJ);
Else
HPALRET = apimethods.getpaletteentries (HPAL, 0, NCOLORS, AJ); if (HPALRET! = 0)
{
For (int nloop = 0; nloop { PRGB [nloop] .rgbred = lppe [nloop] .pered; PRGB [NLOOP] .RGBGreen = LPPE [NLOOP] .pegreen PRGB [NLOOP] .RGBBLUE = LPPE [NLOOP] .peblue; PRGB [nloop] .rgbreserved = 0; } Bret = True; } } } } Return Bret; } } More interesting, after a critical value, I decided to re-implement the number of current errors and the speed of the compilation, and finally see this nice TAB control after a quantified value F5. . I guarantee that I have seen the following information, there is a feeling of chaotic fainting: "As soon as this, why ...", our lovely phil wright is the "very cool" mentioned in the previous article. Docking controls Declaration in DotNetMagic website "all, new 1.1 version, and add a Menu and Tab control", see screenshots on the website, I am comforting myself in my heart, there is still some special features, such as division There is also an Excel, InterDev style, and can also be customized in the VS.NET style. Then it is a new version of the machine's Download. So far, we can see CWTAB, Magic Library, and SharpDevelop's Alexandria Library made three insights for TAB controls. It is the same as that of the three different, and this world is how wonderful. Whether it is a rookie or prawn, it will make such a mistake in online life: dependent bookmarks. On a certain day, I saw a very interesting web page, about WinForm's SKINS topic, and answered the question "How to make WinForm Forms WINAMP?" Soon Save this beautiful picture and zip. Then I think it is a habit, I will return to its home page (try to find more interesting stuff), then collect it. A few days later, when I wanted to find this page again, I found this website using ISO-8859-1 character sets without Search features, and this character I don't know, I can't connect with the memory of several days. Latin or German? (Picture from: http://guille.costasol.net): However, work will continue to do, and it may be the similar process above, from Beta2 to RTM, all kinds of adjustments, more bad, this time I encounter resource documents (different nationality and language system), I tried to use the latest Regenresx .exe converts these resource files to the RTM version, for solving such an error message: "The (predeterminado) Culture Cannot Be Converted to a CultureInfo Object On this Computer." will also be a test of skills. But I still have to thank Alberto Ortiz Enrique (aoe@euskalnet.net) This is a subtle implementation. We have such a new opportunity under DOTNET: developers in various languages can communicate on a general platform. This communication is absolutely beneficial: a C programmer has the opportunity to see a Prel programmer's implementation, and the same VB programmer can also see the Python programmer design. As for this platform, it is built on Windows or UNIX, which may be decided by business and belief. Thank you, look at the last results: Of course, there are more Demo. Finally, IECALENDAR.VB Source Code Sub New () Finally I made the following sentence, this error is obvious and needs to be adjusted. AddHandler AoeCommand.Load, Addressof AoEcalendar_Load, So Samples in Sample will have some problems, but the discussion of these issues exceeds the assumption of this article. And it does not affect the understanding of the entire design and implementation. Ok, I think it is to end this time about innovation and speed topics. The above two examples you can get in the link below. I am debugging on the W2K CN Adv SP2 SRP1, VS.NET EN RTM, DOTNET SDK V1.0. Download related files: [CWTABFORRTM] [AOEPACKNET for RTM] [AOEPACKNETBETAOLD] especially: The above software and procedures have indicated that the sources and owners, respect copyright and their own terms. Thanks 9CBS to provide space for downloading files and pictures. This article 9CBS signature start, reprint, or adaptation, please indicate the author and the source. If there is a problem, please send an email to new2001@msn.com The above text and pictures involve other people's privacy and personal rights, all texts and pictures are only used for internal communication and do not make any news published and commercial purposes.