i tried this code but it didn't work : CWnd *pMain=AfxGetMainWnd(); CMenu * pMenu=pMain->GetMenu(); CMenu * pSubMenu=pMenu->GetSubMenu(3); pSubMenu->EnableMenuItem( 1,MF_DISABLED| MF_GRAYED | MF_BYPOSITION ); in spite of this the following code is working properlly: CWnd *pMain=AfxGetMainWnd(); CMenu * pMenu=pMain->GetMenu(); pMenu->EnableMenuItem(3,MF_DISABLED| MF_GRAYED | MF_BYPOSITION ); please any help, why this happen Best Regards :)
Drawil
Posts
-
Disable popup menu -
ending SDI applicationthank u for it is working now Best Regards :)
-
Dialog edit control & Enter keyHi I think to deactivate Enter Key u have to cancel OnOk() in the virtual member function like the following: ////////////////////////////////////////////// void CanyDlg::OnOK() { // TODO: Add extra validation here //CDialog::OnOK(); } ////////////////////////////////////////////// Best Regards :)
-
ending SDI applicationhello every body I want to know how can i end an sdi application like what we do in the Dialog application by calling CDialog::OnOk() Best Regards :)
-
toolbarthank you very match:-O Best Regards :)
-
toolbarHello I want to make a separator between tow buttons in toolbar!! how can i do it? Best Regards :)
-
member variables and functionsI think so because I can get the members list in some funcions that decleared as virtual function and I cann't in other functions that decleared as afx_msg function. I donn't know why :confused: Best Regards :)
-
member variables and functionsyes Best Regards :)
-
member variables and functionsHello In project which designed in VC6, when i write any object then the member variables and functions of this object are written or appeared automaticly as in VB6, but this nice feature doesn't work in all functions :(( . How can I solve this problem? Best Regards :)
-
About the size of CStringhi again yes that is right :) there is no problem with CString. the problem was in the Watch window which could not show all char in CString. Best Regards :)
-
About the size of CStringThank u for ur reply I know every thing appeares normal in my code, but after this step if watch this variable 'query' it equals: "select distinct globalt.Mkname,globalt.Route,globalt.Time,globalt.SI,globalt.NDV,globalt.ANBLO,Avg(globalt.Traff) AS AvgTraffic,Avg( globalt.CCONG) AS AvgCCONG from globalt where ((([globalt].[Route]) Like '*SS*' Or ([globalt].[Route]) Like '*I')=Fal" as u see some char doesnot included "se", even if i add more strings to this variable like query+="any thing" then it doesnt appeare. so this is my problem!!!! Best Regards :)
-
About the size of CStringCString query; query=_T("select distinct globalt.Mkname,globalt.Route,globalt.Time,globalt.SI,globalt.NDV,globalt.ANBLO,Avg(globalt.Traff) AS AvgTraffic,Avg( globalt.CCONG) AS AvgCCONG \n" "from globalt \n" "where ((([globalt].[Route]) Like '*SS*' Or ([globalt].[Route]) Like '*I')=False"); Best Regards :)
-
About the size of CStringHello every body i try to put mor than 256 char in the CString viriable but i cannot, any help. Best Regards :)
-
store datahello i want to save some information, that written in edit box, in a text file, how can i do this by javascript. thank you Best Regards :)
-
context sensitive HelpHello I use the wizard to make new project and I select context sensitive Help, the question is: can I remove this option from my project? how?? Best Regards :)
-
database (ADO)hi again thakx alot, it works after i added the include line. but what's the precompiled header!! Best Regards :)
-
database (ADO)hi i download the class that in 'codeproject.com/database' and when i added the ado.h and ado.cpp to my program the following error occures: "fatal error C1010: unexpected end of file while looking for precompiled header directive" the file that indicated in error is ado.cpp any help!!! :-D Best Regards :)
-
adohi every body i added a microsoft ado data control after that many classes added to my workspace such as C_Recordset.., i need any help or example to know how connect and make a query. Best Regards :)
-
compatibilty issue (VC5.0 and VC6.0)the problem happen when I press Go Button the program, i got the following message: Unhandled exception in file.exe: 0xC0000005: Access Violation Best Regards :)
-
compatibilty issue (VC5.0 and VC6.0)hi every body i had an old projects desgined with vc++5.0 (source code), when i built these projects I couldn't make an exe file for this project. Best Regards :)