|
|
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?
|
|
|
|
|
Hi all.
in my application i m open the .chm file with the help of ShellExecute function.
Here if i m already open the .chm file ,and than again open .chm, so there is number of .chm file opened.
i want if the .chm file is already open than it is not open again.
Please help me for this.
Thank 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.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
sashoalm wrote: Use the HtmlHelp function instead of ShellExecute, it takes care of that.
Please tell me how van i use it i have no idea of that .
if possible please tell me with example.
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
|
|
|
|
|
const char* help_file_path = "help.chm";
HWND hwnd = AfxGetMainWnd()->GetSafeHwnd();
const char* topic = NULL;
HtmlHelp(hwnd, help_file_path, HH_DISPLAY_TOPIC, (DWORD) topic);
You have to include htmlhelp.h and link with htmlhelp.lib, you'll find them inside the directory of your html workshop, for example "c:\Program Files\HTML Help Workshop"
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
|
|
|
|
|
Hi ,
Basically I work on Lotus Notes, and I am a newbie on Visual C++. As of now, I need to access Lotus Notes Dbs and using Notes C++ API toolkit for Lotus Notes. I have set the environment including PATH , Include and LIB variables. I tried compiling my program (MFC/Dialog). However, its giving me the following compilation errors :
error C2065: 'LNNotesSession' : undeclared identifier
Moreover I have set like this:
#include <lncppapi.h>
龍
|
|
|
|
|
Did you include "LNCPPAPI.H" header?
I found it from here - http://www.taupo.co.uk/examples.html[^]. BTW, Google is your best friend.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
modified on Thursday, August 14, 2008 5:02 AM
|
|
|
|
|
Hi all, I've written a c++ program that will grab images from camera and will analyze them. it's a kind of some image processing software. but here i want my network users see the result too. one solution is c++ socket programming, I mean i can write a program in c++ that will connect to my image processing server and will get images on the network.
My question is, is it possible for the users to see the results on the internet explorer and not with an additional c++ software? May be a flash module or something that will read stream from server.
Any suggestion?
modified on Thursday, August 14, 2008 1:18 AM
|
|
|
|
|
Hi all,
Can anybody tell me how can i bold the caption of property pages in Property sheet.
The caption is show on tab window of property sheet is a Caption of Property page how can i Bold it.
Please help me for this.
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
|
|
|
|
|
Hi,
You have to subclass the tab control in CPropertySheet. Use CPropertySheet::GetTabControl API to get the tab control in property sheet. Then override the CTabCtrl::DrawItem .
Please refer here[^] and here also[^]for more information.
Hope this will help you.
Regards,
Paresh.
|
|
|
|
|
Paresh Chitte wrote: Please refer here[^]
It helps to focus selected tab.It changes the color of selected tab.
But please tell me how can i Bold it.It is possible or not.
Thanks.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Use a bold font!
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|