|
I think u r not using correct flags in Create method
try this
m_imageList.Create(19,19,ILC_COLOR24|ILC_MASK)
i am assuming that u r using 24 bit bitmaps otherwise u can use
ILC_COLOR8 etc....
ILC_MASK is for masking the background color.
|
|
|
|
|
i have to hook the keyboard and get keydown event and which key is pressed and then
intercept the wm_char message which is generated for that keydown event and change that particular character and translate that to my own character and that character is an extended ascii character.
Sir i have designed a font file and i included lot of new characters in the font file to accomadate more characters which Tamil language have.I can easily manage to access the 52 characeters in A_Z and a-z using normal keyboard ,but i have included 200 characters .I am not using unicode for i am not using opentype font but only true type font.the remaining characters are in other ascii range .
say if a user type A from the keyboard it should be converted to say € irrespective of whatever the application is running may be it is visual studio or word or notepad or photshop u name it.
.Is it possibe to display them by changing the wm_char message.?
if so how is it possible ?
Do anybody know how to hook the message and intercept keyboard messages and change the character system wide.
i need the codings of intercepting that message and load that message with extended ascii character(system wide and not for any single application)
thanks in advance
|
|
|
|
|
Sir i need to develop a software where i have to change the ascii character into extended ascii character and send to the active application.
say if a user type A from the keyboard it should be converted to say € irrespective of whatever the application is running may be it is visual studio or word or notepad or photshop u name it.
i need the codings of intercepting that message and load that message with extended ascii character(system wide and not for any single application)
thanks in advance
|
|
|
|
|
does anyone have any experience in this?
I am using a CRecorset (C++) object to pull data from a database. The data field in the recordset is a CTime data object. I am trying to pass the data to a class defined in VB and the property is a Date data type.
Any pointers would be greatly appreciated.
thanks
roger
|
|
|
|
|
Try COleDateTime.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
|
How can I query disk space (used and unused)? What sort of rights/privilege do I need to query disk space on remote machine?
Thanks.
norm
|
|
|
|
|
|
|
How can you check if dot-NET framework is installed on a computer PROGRAMMATICALLY and from DOS-prompt?
Thanks.
norm
|
|
|
|
|
does anyone know a way to display and load photoshop pictures , *.psd
<marquee>Universal Project... Soon to be a .net
|
|
|
|
|
|
For my CFontDialog, I am passing CF_EFFECTS so I can get the color selector. However, I would like the Underline and Strikeout options to be hidden. Does anyone know of a SIMPLE way to do this?
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Use your own dialog template, leaving off the controls you do not want. Create the dialog with the CF_ENABLETEMPLATE flag.
Look in Font.dlg for the default template so you know what controls to use. The control IDs are defined in dlgs.h
Sonork 100.11743 Chicken Little
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
Within you lies the power for good - Use it!
|
|
|
|
|
What part of SIMPLE didn't you understand?
(I was hoping to avoid this option.)
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
AFAIK that is as simple as you are going to get it. If you have a simpler solution, let me know;)
Sonork 100.11743 Chicken Little
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
Within you lies the power for good - Use it!
|
|
|
|
|
I guess another way would be to subclass the CFontDialog class, and in your OnInitDialog function do:
CWnd *pWnd = GetDlgItem(chx1);
pWnd->EnableWindow(FALSE);
pWnd->ShowWindow(SW_HIDE);
pWnd = GetDlgItem(chx2);
pWnd->EnableWindow(FALSE);
pWnd->ShowWindow(SW_HIDE);
Sonork 100.11743 Chicken Little
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
Within you lies the power for good - Use it!
|
|
|
|
|
Hi,
I created an ATL object (DLL) so that it creates 10 threads. These threads calling ActiveX EXE on remote side (it's developed by vb6) by CoCreateInstanceEx(). ActiveX EXE has been developed in order to do parallel database operations. There's no problem with multithreading, it creates 10 threads. But i can't get any response from database. Queries cannot been executing and neither select queries. As a result system hanging...
I am using MS SQL Server 2000.
What is lying behind of it? What can i do?
Thank you.
Orkun GEDiK
ASTRON
|
|
|
|
|
All I want to do is add my menu to my Dialog based C++ MFC application.
I have added the new menu resource and provided the menu fields (not done the event handlers yet).
But all I get displayed when the application is run is the 'Standard System' menu.
I have read textbooks, searched for a sample; but all either relate to dynamically adding menu items or using the Class Wizard of C++ Version 6.0. I am geting a bit lost!
I am using Visual Studio .Net --- I thought Menus would be easy!!
Please, pleae help.
grahamfff
|
|
|
|
|
Create your menu resource (IDR_MENU1 )
Add a CMenu member variable to your dialog class
CMenu m_MyMenu; In OnInitDialog() add the following code:
m_MyMenu.LoadMenu(IDR_MENU1);
SetMenu(&m_MyMenu);
Sonork 100.11743 Chicken Little
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
Within you lies the power for good - Use it!
|
|
|
|
|
Thanks, this was just what I was looking for but never found.
Obviously a superstar!
grahamfff
|
|
|
|
|
Hi,
I have a ruler bar control which is dock on top of a OpenGL view. I want to draw the ruler bar according to the "zoom level" of my 3D object. To do that, I need a way to convert the distance between two OpenGL points into pixels.
Thanks!!
Jean Bédard
Optifor Inc.
|
|
|
|
|
Try gluProject!
gluProject maps object coordinates to window coordinates.
You have to link with glu32 though.
|
|
|
|
|
I am a relatively new C++ user. I am developing a program to run a control algorithm. Basically what the program does is communicate with an analog I/O card that I have installed. It reads voltage values from the I/O card and uses them to compute and output a control value to a separate channel.
I am currently attempting to use windows forms to accomplish this. When I run the program, I want a form to come up that allows me to change control parameters. There will be a "start" button which begins execution of the control algorithm (essentially just a program loop). Then, I want a "stop" button which terminates execution of the control loop. The problem that I'm having is that I can't figure out how to use a Windows Forms button to terminate a program loop. Can anyone offer any suggestions here?
Andrew Krajnik
|
|
|
|
|
use thread for your application. you can run your algorithm on thread. then only u can able to click the stop button. there is lot of articles in this site for thread. go thru that.
have a nice day!
Murali.M
|
|
|
|