Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
B

benben

@benben
About
Posts
51
Topics
28
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Does any try vs2010?
    B 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

    The Lounge help question

  • Is it possible to custom_draw the chevron button on the CRebar?
    B 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

    C / C++ / MFC tutorial question

  • Any idea for a domain name for a website like codeproject.com?
    B 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

    The Lounge com question

  • Tomorrow...
    B 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

    The Lounge java question

  • WW2 and Japanese
    B 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

    The Lounge question announcement career workspace

  • How many Visual Studio users are there?
    B 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

    The Lounge csharp visual-studio question

  • Even Microsoft make a mistakes....
    B 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

    The Lounge asp-net com help question

  • PropertyPages and data
    B benben

    How about storing the data to the global variables?:) Benben

    C / C++ / MFC csharp visual-studio algorithms help tutorial

  • An odd question....
    B benben

    try show her some shell script :) Thanks! Benben

    The Lounge question c++ career workspace

  • how to save the toolbar state to a .ini file?
    B 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

    C / C++ / MFC c++ windows-admin tutorial question

  • a problem about showing tooltips of the toolbar
    B benben

    Thank your very much!

    C / C++ / MFC help question

  • a problem about showing tooltips of the toolbar
    B benben

    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

    C / C++ / MFC help question

  • a problem about "OnLButtonDblClk "
    B 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

    C / C++ / MFC help question

  • a problem about "OnLButtonDblClk "
    B 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

    C / C++ / MFC help question

  • problem about tray icon
    B 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

    C / C++ / MFC help tutorial question

  • how to draw the background bmp for the statusbar?
    B benben

    Thanks Benben

    C / C++ / MFC question

  • how to draw the background bmp for the statusbar?
    B 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

    C / C++ / MFC question

  • how to add "script" tag to the html page?
    B benben

    Thanks, Could you tell me how to add "script" tag? I try IHtmldocement2::createElement, but it doesn't work? Thanks Benben

    C / C++ / MFC html com tools tutorial question

  • how to add "script" tag to the html page?
    B 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

    C / C++ / MFC html com tools tutorial question

  • a problem about "HRESULT IWebBrowser2::get_HWND(long *pHWND);"
    B 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

    C / C++ / MFC help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups