Does any try vc2010? I'm trying it now, but it seems 10 times slow than vc2008, especially when linking. Does anyone have such problem?
Thanks Benben
Does any try vc2010? I'm trying it now, but it seems 10 times slow than vc2008, especially when linking. Does anyone have such problem?
Thanks Benben
I want to customize the rebar's appearance(gripper, background...).I catch the NM_CUSTOMDRAW notification to do some processing, For example: BOOL CMyReBar::OnNotify( WPARAM wParam, LPARAM lParam, LRESULT* pResult ) { ......... NMHDR* pNMHDR = ( NMHDR* )lParam; switch ( pNMHDR->code ) { case NM_CUSTOMDRAW: { //DWORD dwStyle = GetDrawStyle(); //if (dwStyle>DRAW_ORIGINAL) *pResult=DoCustomDrawXP(pNMHDR); break; } ........... } ........ } LRESULT CMyReBar::DoCustomDrawXP( NMHDR* pNMHDR) { LPNMCUSTOMDRAW lpNMCustomDraw = ( LPNMCUSTOMDRAW )pNMHDR; LRESULT pResult = CDRF_DODEFAULT; switch ( lpNMCustomDraw->dwDrawStage ) { case CDDS_PREPAINT: pResult = CDRF_NOTIFYITEMDRAW; break; case CDDS_ITEMPREPAINT: //here I try to owner-draw the rebar control's appearance DrawItem(lpNMCustomDraw); pResult = CDRF_SKIPDEFAULT; break; } return pResult; } But I find in this way I can only custom-draw the gripper. If there is a chevron button on the rebar, it is disappeared. How could I get the similar notification to draw the chevron button by myself?
Thanks Benben
a VC site in chinese?(I guess so from your ID) Have you ever tried "www.vckbase.com"? It is also a very good VC site,IMO.
Thanks Benben
Rob Caldecott wrote:
Java
Good luck! One year ago, I had the chance to take such Java exam(before the exam, I hadn't be informed that the Java would be the subject, and I always thought it was c++), and the reality was I knew nothing about it(except its name).So I answered all the questions just imaging all of them were c++ questions :)
Thanks Benben
Christian Graus wrote:
do you think that each successive generation of Japanese should be given a massive guilt trip about the past
I don't think every Japanese should fell guilty about the past, but I think they should never deny the reality. On this point, German do much much better than Japanese.
Thanks Benben
Mark Nischalke wrote:
If you ask Microsoft it's all of them, because anyone who doesn't used it doesn't count
Good idea!:)
Thanks Benben
Henize wrote:
The web-sites are in the beta 2 release, they will have RC 1 in a few days
Hope RC1 will not be delayed! :)
Thanks Benben
How about storing the data to the global variables?:) Benben
try show her some shell script :) Thanks! Benben
Hi: In MFC, I could save the toolbar's state to registry by calling function CToolBarCtrl::SaveState, but how to save the toolbar's state to an ini file? Sometimes,I don't want to use registry , Could you give me some idea? Thanks very much! Thanks Benben
Thank your very much!
Hi: I overload the CToolBar class , and process the default TBN_GETINFOTIP event to dynamicly changge the tips. ( ON_NOTIFY_REFLECT( TBN_GETINFOTIP, OnGetInfoTip) the way works well. Then I create a toolbar in the statusbar in one of my project, but this way doesn't work at all. I couldn't get the OnGetInfoTip event form the toolbar created in the statusbar now. Why? how could I do? Thanks Benben
Yes,I don't think it is a right control. But what I mean is I want to do something when the user double click on the controlbar( include the area covered by the rebar), how should I do?(And I am sure the rebar needn't process this message).And it really work for right click message. Thanks Benben
In my program, I create a controlbar . If I double click on the controlbar, it can get the LButtonDblClk message. Then I create an rebar on that controlbar, but if I double click on the rebar, the controlbar can't get the LButtonDblClk message. And I find if I right click on the rebar, the controlbar still can get the right-click message. It is strange.How could I get the LButtonDblClk message in the controlbar when I doubld click on the rebar? Thanks Benben
Hi: 1)I add an icon(256 color) to the tray。It works well in winxp,but in win2k ,the icon doesn't show correctly(it becomes ugly),how to resolve this problem? 2)I handle the onmousewheel message by myself, but how could I know how many lines I should scroll in this message? Thanks Benben
Thanks Benben
Hi: I want to let the CStatusBar support background bmp(just like CRebar's background).I try to draw the bmp in the onerasebackground() function,but it seems that this way only works in winxp;in win98/me/2000,the background doesn't show correctly.Could you give me any idea or any examplt? Thanks Benben
Thanks, Could you tell me how to add "script" tag? I try IHtmldocement2::createElement, but it doesn't work? Thanks Benben
Hi: I make a programme based on IWebbrowser, and I want to insert a script to the htmlpage loaded by my programme.(the script maybe looks like: ... )How could I do? I find a article "http://www.codeguru.com/ieprogram/HtmlMemory.html" .It tells us how to modify the content of the SCRIPT,but didn't tell how to add to "SCRIPT" tag to the htmlpage. Thanks Benben
Hi: I make a programme based on IWebBrowser2(or chtmlview).In MSDN, it says that: this function "Retrieves the handle of the Microsoft® Internet Explorer main window.".but I want to overwrite this function to let it return my main window(otherwise in my programme ,it always return NULL).how could I do? Thanks. Benben