|
UpdateCommandUI (ON_UPDATE_COMMAND_UI ) does not work for menus in a dialog.
You will need to do the update manually; I'm certain there is an article on this subject somewhere on CodeProject.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Hi Maximilien,
No (I think)its work.I saw exactly this event with one program(Dialog) but i dont know address from program and I try that write like that program but I dont know.
and Maximilien I think that problem is pCmdUI->m_pMenu that is empty
anyway
dear XStress
now I suggest use CheckMenuItem
|
|
|
|
|
Yeah, it work, and so simple. Thanks WhiteSky
Just a newbie
|
|
|
|
|
I have a CImageList...
m_image.Create(16, 16, ILC_COLOR32 | ILC_MASK, 11, 0);
If me ColorDeep is 24bit on Windows I get e black background of the Icons in the ListCtrl
If i am on the 16bit or 32bit ColorDeeop mode the Icons are all correct (with transparent/white background).
Has somebody an idea why?
A Idea how i can fix this will be perfect.
thx in advance.
Greets
Mike
|
|
|
|
|
why?
I think it's worked.
Please test this code.
CImageList *m_ImageList;
CListCtrl m_List2;
LV_ITEM Item2;
CBitmap *oriBmp;
oriBmp=new CBitmap();
oriBmp->LoadBitmap(IDB_ARROW1);
m_List2.Create(WS_CHILD|WS_VISIBLE,CRect(0,0,100,100),this,1);
m_ImageList=new CImageList();
m_ImageList->Create(14,14, ILC_COLOR24,0,0);
//m_ImageList->Create(14,14, ILC_COLORDDB,0,0);
m_ImageList->Add(oriBmp,RGB(100,105,0));
m_List2.SetImageList(m_ImageList, LVSIL_NORMAL);
Item2 .mask = LVIF_TEXT| LVIF_IMAGE| LVIF_STATE;
Item2 .iItem =0;
Item2 .iSubItem = 0;
Item2 .pszText = CA2T("test");
Item2 .iImage = 0;
Item2 .stateMask = LVIS_STATEIMAGEMASK;
Item2 .state = INDEXTOSTATEIMAGEMASK(1);
m_List2.InsertItem( &Item2);
|
|
|
|
|
Hi,
The program that I am coding(in vc++6) has a lot of edit boxes(about 15). Depending upon some input, a few edit boxes have to be disabled.
This is how I do it:
CEdit *e1;
e1 = (CEdit *) GetDlgItem(IDC_URELEASE);
e1->EnableWindow(FALSE);
Now, at some later part in the program I have to do some validation. In the validation part, I have to first check whether the edit box is enabled or disabled.
Please can you tell me how to do this.
Thanks,
Tara
Fortitudine Vinsinues!
|
|
|
|
|
CEdit m_Edit;
m_Edit.Create(WS_CHILD|WS_VISIBLE,CRect(0,0,100,100),this,1);
BOOL o=m_Edit.IsWindowEnabled();//->1
o=m_Edit.EnableWindow(0);
o=m_Edit.IsWindowEnabled();//->0
|
|
|
|
|
WOW. It worked. Thanks a billion.
Tara
Fortitudine Vinsinues!
|
|
|
|
|
In Win32 , i want to write a program can implement some function such as : Shutdown , restart , logoff ,standby . I've used ExitWindowEx function for shutdown ,restart ,lofoff ,but i can't Standby .Who know about Standby in Win32, please help me .
Thanks .
|
|
|
|
|
|
Hi!!!!!!!!!! all
i m anshu , n i m new in this field, i hv a problum , actually i made a MDI file n i m executing some exe from it. now the prob is, i hv to make that application as child for my MDI so plz if u people hv ny idia abt it plz send me information on my ID
premanshu.sinha@gmail.com
regards
premanshu sinha
Premanshu sinha
-- modified at 7:01 Monday 1st May, 2006
|
|
|
|
|
Let us consider a html page with a command button activex control.
We create a webbrowser control within our application;navigate to this url.
Next we ierate the mshtml DOM to arrive at this activex element.
Is it possible to invoke the 'onpress' event of this button programatically or via script?
We require this for a playback performance functionality in which we would be automating the manual actions(events).
|
|
|
|
|
Do you want to click one button in html page within your application ?
|
|
|
|
|
yes.i want to
1.host a browser,
2.navigate to a url,
3.load the document and then
4.click a button within it.
I am not clear on the last part of it.How do i submit html control events to a browser control without user intervention.
|
|
|
|
|
|
Hi All,
I have a splitterwnd with 3 panes. I dont want the scroll bars to come in each of the panes.How can I disable them.
Thanks in advance
Raghu
|
|
|
|
|
try SetScrollSizes(0,0)
i think it works
|
|
|
|
|
Im not sure but maybe you can hide scrollbar with these functions
ShowScrollBar
or
BOOL o=InitializeFlatSB(hWnd);
o=FlatSB_ShowScrollBar(hWnd,SB_BOTH,0);
|
|
|
|
|
please give the links to the document
Mad John
|
|
|
|
|
I am developing the application to post the blog.
For that I am crawling for the keyword on Google and Yahoo. Now i want search for the blog from the crawled result.
When the application start crwaling for the keywords provided the thread will satr identifying the blogs and Add them to database.
Cheers
"Peace of mind through Technology"
|
|
|
|
|
hi,i have a programe to perform in dialog ~
i want to convert to base in MDI
how should i can do ?
thinks~
|
|
|
|
|
Hi all,
I've create in VC6 a win32 static library. I called it CommonLibrary.
The objective is the encapsulate and to simplify some annoying uses of win32 the nor MFC or other libraries gives.
for starters, i've implemented 3 classes:
1. CRegEx - Which encapsulate the annoying registry methods RegXXXX where XXXX is the operation being done on the registry.
2. CFolderDialogEx - Which encapsulate the annoying shell method SHBrowseForFolder. it is like MFC CFileDialog, but it displays folders selection.
3. CTrayIconEx - Which encapsulate the annoying method Shell_NotifyIcon. helps put and remove icons easily in the system tray.
I would like to hear your comments about what other classes should be in this static library.
also maybe you would like to join me in writing those classes, like a join project.
I know there are many classes here in code project, but there is no library the contains them all.
what do you think?
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
you said these classes are here(of course application not lib)
now what do you need?
|
|
|
|
|
Hi,
Due to previous obligations i am dropping the subject....
thanks for your willing to help..
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
Hi,
With which version of VC++ M.F.C 7.0 is available. is it VC++.Net(which comes Visual Studio .Net 2003)or what? Suggest me some good book or links to update myself.
Regards
Eswari
-- modified at 4:36 Monday 1st May, 2006
|
|
|
|