473,387 Members | 1,553 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

NativeWindow.RegisterClass bug

Anyone knows if the bug in NativeWindow.RegisterClass and the class names
list being case sensitive is scheduled to be fixed or already fixed?

In short, NativeWindow.RegisterClass keeps a list of registered classes that
is case sensitive, but Windows itself is not. So you want to use a class
that is already registered by the .NET framework you have to guess the
correct case or you get a 'class already registered" exception. That's
because .NET does not find it in the list and tries to register it again. In
the framework some classes are registsred uppercase, some other lowercase,
and others mixed case.

There is no easy way around it since the SDK GetClassInfo() will not return
the case that was used to register the class originally.

Any info is appreciated.

/Gianluca
Nov 17 '05 #1
0 1472

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Marco Segurini | last post by:
Hi, I am trying to dynamically install/deinstall a message handler to a System.Windows.Forms.Form using NativeWindow. I do not use IMessageFilter derived class because it intercept only the...
0
by: Ted Miller | last post by:
I have a managed class that registers a window class with the usual Win32 RegisterClass API. // Global function, not part of class LRESULT CALLBACK MyWindowProc( IN HWND hwnd, IN UINT Msg,...
3
by: Richard | last post by:
I have a requirement to put a GDI style circle or rectangle border around the selected row of a datagrid/ It will overlap into the row above and below the selected row. Doing this in a the OnPaint...
0
by: edx | last post by:
Hi, I have the following lines of code: WNDCLASS wc; memset (&wc, 0, sizeof (wc)); wc.hbrBackground = GetSysColorBrush (COLOR_WINDOW); wc.hInstance = GetModuleHandle (NULL); wc.lpfnWndProc...
2
by: Laura Martignas | last post by:
Hi everybody I'm trying to subclass Winamp's main window in order to develop a software which will interact with Winamp. For testing, I'm trying to intercept the closing of this window via...
1
by: codercoder | last post by:
I have on method call another method NotificationWndProc to create a notification window, which will receive messages. At the first time, things are running OK, but in the second time, it returns...
0
by: caa | last post by:
Hi there, people! I m working on a c# control. Using VS2003 and writing for .NET 1.1. I wrote an app that automaticly opens and closes (after a random Sleep) forms that own one instance of my...
3
by: tomko | last post by:
Hi, What is the right way to dispose of a NativeWindow? I guess the NativeWindow is managed code and will be cleared by the GC, but the window handle it is holding is a native handle! I'm...
1
by: chriskent | last post by:
Hi, I have an unusual situation whereby we create a Window during initialisation. We have used this code for many years and have found one unusual case with a customer when the RegiterClass fails...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.