Check Box & ShellExecute Question.
-
How to check if the check box is checked or not in win 32 App ??? We use to use member of the check box to check if its checked or not checked in MFC m_CkBox == TRUE how to do it in win 32 app ???? I want to open the text file in note pad how to do it ??? This works in MFC ShellExecute(NULL, "open", FileName ,NULL, NULL, SW_SHOWNORMAL); How to do it in Win 32 API ??? I am not able to use ShellExecute in win 32 App Thanking you,:) Suresh HC
-
How to check if the check box is checked or not in win 32 App ??? We use to use member of the check box to check if its checked or not checked in MFC m_CkBox == TRUE how to do it in win 32 app ???? I want to open the text file in note pad how to do it ??? This works in MFC ShellExecute(NULL, "open", FileName ,NULL, NULL, SW_SHOWNORMAL); How to do it in Win 32 API ??? I am not able to use ShellExecute in win 32 App Thanking you,:) Suresh HC
Suresh H wrote:
How to check if the check box is checked or not in win 32 App ??? We use to use member of the check box to check if its checked or not checked in MFC m_CkBox == TRUE how to do it in win 32 app ????
BM_GETCHECK.
Suresh H wrote:
ShellExecute(NULL, "open", FileName ,NULL, NULL, SW_SHOWNORMAL);
Suresh H wrote:
How to do it in Win 32 API ??? I am not able to use ShellExecute in win 32 App
See what GetLastError returns. See the documentation for further details.
Nibu thomas A Developer Programming tips[^] My site[^]
-
How to check if the check box is checked or not in win 32 App ??? We use to use member of the check box to check if its checked or not checked in MFC m_CkBox == TRUE how to do it in win 32 app ???? I want to open the text file in note pad how to do it ??? This works in MFC ShellExecute(NULL, "open", FileName ,NULL, NULL, SW_SHOWNORMAL); How to do it in Win 32 API ??? I am not able to use ShellExecute in win 32 App Thanking you,:) Suresh HC
See
BM_GETCHECK
andBM_GETSTATE
WhiteSky
-
Suresh H wrote:
How to check if the check box is checked or not in win 32 App ??? We use to use member of the check box to check if its checked or not checked in MFC m_CkBox == TRUE how to do it in win 32 app ????
BM_GETCHECK.
Suresh H wrote:
ShellExecute(NULL, "open", FileName ,NULL, NULL, SW_SHOWNORMAL);
Suresh H wrote:
How to do it in Win 32 API ??? I am not able to use ShellExecute in win 32 App
See what GetLastError returns. See the documentation for further details.
Nibu thomas A Developer Programming tips[^] My site[^]
Thanks Thomas for the response & for the Solution. Its working now I just did if (::SendMessage(hwndCheckBox,BM_GETCHECK,0,0)==BST_CHECKED) to check the status. But still for this I am getting error ShellExecute(NULL, "open", FileName ,NULL, NULL, SW_SHOWNORMAL); Error:- : error C2065: 'ShellExecute' : undeclared identifier Error executing cl.exe.
-
See
BM_GETCHECK
andBM_GETSTATE
WhiteSky
Thanks White Sky for the response. info is very use full. But still for this I am getting error for this statement ShellExecute(NULL, "open", FileName ,NULL, NULL, SW_SHOWNORMAL); Error:- : error C2065: 'ShellExecute' : undeclared identifier Error executing cl.exe.
-
Thanks Thomas for the response & for the Solution. Its working now I just did if (::SendMessage(hwndCheckBox,BM_GETCHECK,0,0)==BST_CHECKED) to check the status. But still for this I am getting error ShellExecute(NULL, "open", FileName ,NULL, NULL, SW_SHOWNORMAL); Error:- : error C2065: 'ShellExecute' : undeclared identifier Error executing cl.exe.
Suresh H wrote:
But still for this I am getting error ShellExecute(NULL, "open", FileName ,NULL, NULL, SW_SHOWNORMAL); Error:- : error C2065: 'ShellExecute' : undeclared identifier Error executing cl.exe.
Header: Declared in Shellapi.h. Import Library: Shell32.lib.
Nibu thomas A Developer Programming tips[^] My site[^]
-
Thanks White Sky for the response. info is very use full. But still for this I am getting error for this statement ShellExecute(NULL, "open", FileName ,NULL, NULL, SW_SHOWNORMAL); Error:- : error C2065: 'ShellExecute' : undeclared identifier Error executing cl.exe.
I think your problem is sovle with Nibu babu thomas answer,right;)
WhiteSky
-
Suresh H wrote:
But still for this I am getting error ShellExecute(NULL, "open", FileName ,NULL, NULL, SW_SHOWNORMAL); Error:- : error C2065: 'ShellExecute' : undeclared identifier Error executing cl.exe.
Header: Declared in Shellapi.h. Import Library: Shell32.lib.
Nibu thomas A Developer Programming tips[^] My site[^]
-
I think your problem is sovle with Nibu babu thomas answer,right;)
WhiteSky
-
You're welcome:)
WhiteSky