You are right, but my query is how I will get the parent menu (FILE, View,Help) using get menu. I am able to get the child menu and modifying it using ModifyMenu(); Here is my code:- CMenu *pMenu = GetMenu(); pMenu->ModifyMenuW(ID_FILE_PRINT_REPORT,0,ID_FILE_PRINT_REPORT,"Open File"); Here "Open File" is inside file menu. Now I want to change the name of "File" to "File report", for that I need to know the ID of file which is parent menu.
AbhiHcl
Posts
-
Menu Control -
Menu ControlHow to get the Top-level menu ID and change it on the run time. I am able laod trhe name of child menu item using Menu ID. But I don't knoe how to load the name of top lavel menu (like File, View, Help) at run time. Please any one can help me. Thanks...
-
Z orderHi, I created a control(C1) at run time and one more control(C2) at run time on a dialog. I want C2 on the Top of C1. I used SetWindiwPos but no use.. How can I do it?
-
Time formatHow to get the system Clock Style, I mean weather it 12 hr clock style or 24 hr clock style. Thanks.
-
Populate Menu from fileI have a xml file which hold the structre of Menu items . I want to create the Menu at runtime by reading the XML file . Can any body help to know how to do this. Thaks.
-
CListcontrolIn List control, while using the Scroll bar, how we can know how much rows has went upside if scroling. Thanks
-
CListCtrlthis->CreateEx(WS_EX_TOPMOST,WS_CHILD | WS_VISIBLE |LVS_REPORT |LVS_NOCOLUMNHEADER|LBS_HASSTRINGS|LVS_EX_TRACKSELECT|WS_TABSTOP ,rect, pWnd,nID); this->SetWindowPos(&wndTop,0,0,0,0,SWP_NOSIZE|SWP_NOMOVE); // here I m setting this control on the top.
-
CListCtrlHi, Is there any one to solve this issue?
-
CListCtrlThis is not I am expecting
-
CListCtrlI created ListCtrl on Btn Click as child of dialog. But controls that are already exist on the dialog they are getting diaply over the List control? How to resolve this issue?
-
CListCtrlHI , I am creating CListCtrl at run time and paining its row using CustomeDraw. But If any control is behind the list control, I am able to see and press. How to draw the list control over another control.
-
processor timeWhich one takes more processing time a. contineous if condition or switch case in while loop . e.g. while(conditon) { switch(conditon) { case contion : } codition++ } or if(condition) { } if(condition) {} if(codition) {}.... and so ono... Thanks
-
Reading chunks of Datathanks for reply, My acutal dat is like char *str = "1,2,3\r\n1,3,4\r\n3,4,5\r\n1,3,5\r\n2,3,1\r\nCMD OK\r\n" but first time I m getting only char* temp = "1,2,3\r\n1,3,4\r\n3,4," I need to read upto last \r\n and keep the remaining (3,4) in some temporery variable, and the next time wen I'll get the another set of data then I need to append the tepory data with the new one, I hv to do the same task until I m not getting the "CMD OK\r\n". I need to do like that becz every comma seperated value has to be store in seperate array. Can u please send me some sample code for that.. Thanks..
-
Reading chunks of DataHi , I hv a char buffer(say 1024 bytes) with lots of data, I want to read data from that buffer, but at one time I can read only some of character(say 255 bytes). I need to read all the data from the buffer and place excatly after the last cahrcter I read (say after the first 255 bytes I need to put second part of the buffer and so on.. until the full buffer I read). Please help me in this regards.. If possible please provide me some sample code. Thanks..
-
Fill arrayits nothing like that I hv not tried, but some where I stucked , Here by I m putting my code what I hv done till nw. char* szStr = "2,aaa\r\n3,bbb\r\n4,ccc\r\n5,ddd\r\n6,eee\r\n" ; int len = strlen(szStr); char* tempstrlen = new char[len + 1 ]; char* tempstrst = new char[len + 1 ] ; char* tempstr1 = NULL ; char* tempstr2 = NULL ; int nlang[12] ; char* szTag[5] ; memset(tempstrlen,0x00,sizeof(char) * (len + 1)) ; memcpy(tempstrlen,szStr,sizeof(char) * len); memset(tempstrst,0x00,sizeof(char) * (len + 1)); memcpy(tempstrst,szStr,sizeof(char) * len) ; tempstr1 = tempstrlen ; tempstr1 = strtok(tempstrst,"\r\n"); // nlang[0] = atoi(tempstr1) ; szTag[0]= tempstr1 ; int nCount = 0 ; int nCountChar = 0 ; while((tempstrst != NULL) && (nCount != 4)) { tempstr1 = strtok(NULL,"\r\n"); szTag[nCount + 1]= tempstr1 ; nCount++ ; } int i = 0; char* txt = NULL ; for(i = 0 ;i < 5 ; i++ ); { txt = strtok(szTag[i],","); nlang[0] = atoi(txt) ; while(szTag!=NULL && i>=0) { txt = strtok(szTag[i],","); nlang[i] = atoi(txt); i++ ; } i++ ; } please go through that and tell me where I m going wrong.
-
Fill arraycan u please send me some sample code .
-
Fill arrayThanx for ur reply, Can u please gv me some ssample code as I m new in c++.
-
Fill arrayHi I have two char array which I need to fill by parsing the string. char * str = "1,aaa\r\n2,bbb\r\n3,ccc\r\n4,ddd\r\n" now the the first value(1,2,3,4 in this case ) has to fill in first array and second value(aaa,bbb,ccc,ddd in this case) has to fill in second array. Can anybody please help me how to do this. please provide me a sample code if possible. Thanks
-
Read StringHi I want to find the number of comma(,) in particular string. Like char* str = "a,b,c,d,e". So how many commas are there in str ? Thanks
-
Reading char* bufferCan u please provide some sample code, I m very new in c++. Thanks