|
Did you try with NM_CUSTOMDRAW?
|
|
|
|
|
Hi all,
If the .chm file is open and appilaction is terminated than the .chm is not close.
Please anyone can tell me how can i close the .chm file when application is terminated.
Thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Use the HtmlHelp function instead of ShellExecute, it takes care of that.
Really, I just checked in one of my apps that uses HtmlHelp function, and the help does in fact close when the app is terminated. I assume that you're using the code I posted?
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Thanks.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
No problem.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Hello friends,
How can the program findout which OS is installed?
I want to get the name of the OS which runs in current PC.
Any API or sample code would be appreciated.
Thanks in Advance.
ritz1234
|
|
|
|
|
|
Try GetVersionEx .
Regards,
Paresh.
|
|
|
|
|
|
I am passing a structure as a parameter to a Thread, but with in the structure I should send a couple members as refrences. but I want to inilise it lager on bufore the thread function.
typedef struct THREADSTRUCT_SCOPE
{
// constructor.
THREADSTRUCT_SCOPE( const Scope* ptr )
: _this( ptr )
{}
Class A &a; //want to pass it as reference, Inilize it before entering Thread
Class B &b; // - do -
const Scope *_this;
}THREADSTRUCT_SCOPE;
|
|
|
|
|
SORRY... I am just going toooo narrow , I used a pointer
|
|
|
|
|
Iam running NTService Using MFC ...In taskmanager its showing 2 exe files.. MFC exe running in username process and NTService exe in System account...but i need both sre running in one mode...How to solve this problem...
|
|
|
|
|
|
tns_ranjith wrote: ...but i need both sre running in one mode...How to solve this problem...
Read here.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hi,
I am writing a dialog application. In that i have a bitmap button.
I need to disable that button depending on some conditions.
Say my button variable is m_btnVerfiy i am using m_btnVerify.EnableWindow(false) to disable the button. But this code is not working. Please help me.
|
|
|
|
|
try this:
GetDlgItem(IDC_BUTTON)->EnableWindow(FALSE)
龍
|
|
|
|
|
No, this is also not working.
|
|
|
|
|
IF YOU WANT,YOU CAN GIVE ME YOUR CODE!
龍
|
|
|
|
|
Can you post the relevant code?
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Its a Bitmap Button and i feel it is not getting the proper handle to execute any further operations kindly send the code
|
|
|
|
|
m_btnVerify.EnableWindow(false) the button shouldnt perform an action if clicked.
You need to change the displayed bitmap yourself
Greetings from Germany
|
|
|
|
|
I can change the button image. My problem is button should not call any event. But it is calling button clicked event even it is disabled.
|
|
|
|
|
are you sure that the m_btnVerify is the same that you want to disable and also check that the conditions are met for disabling. You must be enabling the button later some where in your code. Otherwise do you mean that the button does not appear to be disabled. if yes that may be because of the bitmap that is displayed on it.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Since its a bitmap button, you should provide the bitmap to be displayed when the button is disabled. If its not provided, the main button bitmap will be displayed. I suggest you to check your call to CBitmapButton::LoadBitmaps() function.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
What was return value of EnableWindow?
|
|
|
|