|
Two possibilities:
Derive your button control, in its OnCursor, call SetCursor with your cursor image as parameter, and DO NOT call the base class ine the overriden function.
_or_
In the OnMouseMove from the application that uses the button, check if the mouse cursor is inside the button (with a hittest for instance) and change the cursor (e.g. set a member variable to your cursor image, override OnSetCursor, etc...)
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
|
|
|
|
|
hi all, i m trying to associate F2 key in my code. I've used OnKeyDown on my dialog which has a listcontrol, but the function is never called. i hv also included ON_WM_KEYDOWN in the msg map still not working. the functions OnLvnBeginEditList and OnLvnEndlabeleditList work fine for the control..
can neone help
|
|
|
|
|
See here[^] if its good for you
|
|
|
|
|
WhiteSky wrote: See here[^] if its good for you
hotkey wouldn't be great idea here! better she use accelerator!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi all,
I get an annoying and unimportant linker warning i wish to disable...
puting the '/IGNORE:WARNING NUMBER' in the project settings-->linker-->command lines, didn't help me...
can any1 help?
thanks
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
YaronNir wrote: I get an annoying and unimportant linker warning i wish to disable...
puting the '/IGNORE:WARNING NUMBER' in the project settings-->linker-->command lines, didn't help me...
#pragma warning (disable:4100) // 4100 is the warning number
|
|
|
|
|
the pragma directive removes the compiler warning not the linker warning (an error i get during linking)!!!
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
Which warning are you trying to get rid of?
Try this in the top of the header file
#pragma warning (disable:4786)
|
|
|
|
|
the pragma directive removes the compiler warning not the linker warning (an error i get during linking)!!!
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
YaronNir wrote: unimportant linker warning
There is no such thing as an unimportant warning. Should there be, there is always a better solution than disabling it.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
|
|
|
|
|
Hi,
How can I get content (text) from “RichEdit20W” class. I want to use text from “RichEdit20W” class control of office word in my application in VC++.NET. Waiting for reply. Thanks
Priyank
|
|
|
|
|
Hello
Can anyone tell me how to calulate number of bytes on the disk for given folder?(Folder size)
|
|
|
|
|
See here[^]maybe it is some helpful to you
|
|
|
|
|
As far as i know there is no API for that I did need the same thing
what I did was I created a recursive function enumerated all the file and added their size.
Ex
BOOL GetFolderSize(TCHAR* szRoot,__int64* i64Size)
{
FindFirstFile(...);
do{
//IF FOLDER
GetFolderSize( szSubPath,i64Size)
//ELSE IF FILE
Add its value
}while(FindNextFile(hFind,&FindFileData));
FindClose(...);
return(TRUE)
}
but keep in mind that the FindFile.. returns 2 unneeded values the "." and ".." that you should ignore otherwise you will enumerate forever i think
G_S
|
|
|
|
|
|
hi i m implementing the keyboard hook so i m using this code
hInstance=AfxGetInstanceHandle();
hHook=::SetWindowsHookEx(WH_KEYBOARD_LL,LowerLevelKeyboardProc,hInstance,NULL);
but it gives error
D:\_TasleemWork\SinglePC\SinglePC.cpp(27) : error C2065: 'WH_KEYBOARD_LL' : undeclared identifier i had included header files like
#include <windows.h>
#include <winuser.h>
i m using windows 2000 server with visual studio 6 with service pack 5.when i use this api with visual stio.net 2003 it works fine but not with vstudio 6
Thanks in advance
Tasleem Arif
|
|
|
|
|
I guess you need to include these lines in stdafx.h
#undef WINVER
#define WINVER 0x0500
|
|
|
|
|
it did not worked. is that problem is due to the service pack5.it gives following messages
NOTE: WINVER has been defined as 0x0500 or greater which enables
Windows NT 5.0 and Windows 98 features. When these headers were released,
Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions.
For this release when WINVER is defined as 0x0500 or greater, you can only
build beta or test applications. To build a retail application,
set WINVER to 0x0400 or visit http://www.microsoft.com/msdn/sdk
to see if retail Windows NT 5.0 or Windows 98 headers are available.
See the SDK release notes for more information.
D:\_TasleemWork\SinglePC\SinglePC.cpp(29) : error C2065: 'WH_KEYBOARD_LL' : undeclared identifier
Error executing cl.exe.
SinglePC.exe - 1 error(s), 0 warning(s)
-- modified at 7:03 Monday 21st August, 2006
Tasleem Arif
|
|
|
|
|
|
Thanks it did worked.
Tasleem Arif
|
|
|
|
|
Hello all,
I'm new in programming client-server applications. I'm using Remote Procedure Call (RPC) to do that.
I tried a small demo and it works fine when I call server-side functions from the client. But the problem comes when I tried to call client-side functions from the server.
Can anyone help me or give me links to articles talking about this issue?
Thanks a lot.
M.N
|
|
|
|
|
|
I can't find what I'm looking forward.
I want to know how can the server send data to client.
Thanks
M.N
|
|
|
|
|
Dear all,
Please explain me how to save recurring items into outlook.
I'm using Microsoft Outlook 9.0 object library.
There is a class AppointmentItem and with a exposed function GetRecurrencePattern() for retreiving. Like wise, no SetRecurrencePattern() method is availlable.
Please guide me how to save a RecurrencePattern object for an appointment item.
Thanks in advance,
Raja Pratap K.
|
|
|
|
|
i have Created a project which will draw a circle with the mouse.so in this
i declared a parameter which is of Type "long" represents a radius of circle .now i want to display the radius in the window dynamically.i have tryed with the method pDC->TextOut(); but it return type is char so,how to diaplay the radius which will change when changes made in the size of circle?
Ramanand
|
|
|
|