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
T

TBK

@TBK
About
Posts
11
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Aaaaaaaaaaaargh! [More sscars from L*tus N*tes]
    T TBK

    You can’t blame the LMS people, they were making their application consistent with the rest of L*tus N*tes. ;P

    The Lounge com data-structures question

  • C'est la fête!
    T TBK

    Here's how we celebrate it in Philadelphia: http://www.doesthisblogmakemybuttlookbig.com/2004/07/happy_bastille_.html[^]

    The Lounge com tools question

  • Passed ISEB Foundation Certificate Exam
    T TBK

    Did you mention your articles on CP in your resume? I used to be involved with the hiring of programmers and would have been more impressed with well written articles that I could look at myself than a certification.

    The Lounge cryptography testing beta-testing career

  • Am I reaching a limit?
    T TBK

    Are you using TCP_NODELAY (turns off the Nagle algorithm) in the socket options? In Windows this defaults to 0.2 second delay for a send - I am not sure about VxWorks.

    C / C++ / MFC debugging question

  • How to get rid of the scrollbars in a WebBrowser control?
    T TBK

    You must wait for the DocumentComplete event from the Web browser control before you can get the document. Also you must implement the IDocHostUIHandler interface. The Web browser control will call your GetHostInfo method. You might be able to find some example code for this interface using MFC.

    C / C++ / MFC help tutorial question

  • How to get rid of the scrollbars in a WebBrowser control?
    T TBK

    This can be done with the IDocHostUIHandler interface that you must implement in your container (CView derived class). Look at GetHostInfo and returning with docHostUIFlagSCROLL_NO flag set. In ATL support for this interface is built in. You can look at the implementation of CAxHostWindow for an example implementation. A description of some of this can be found in ATL Internals.

    C / C++ / MFC help tutorial question

  • sscanf and double
    T TBK

    Try using: sscanf( strnumber, "%lf", &m_dAg); lf should be used for doubles

    C / C++ / MFC mcp help question

  • How to simulate/automate user input?
    T TBK

    Take a look at the SendInput Win32 API function. There also are commercial tools you can buy for automated testing that will do this too.

    C / C++ / MFC tutorial question

  • How to Subclass PropertySheet buttons ?
    T TBK

    You can use GetDlgItem on these buttons like any other control (IDOK, IDCANCEL, etc.). They can be subclassed in the WM_CREATE of the property sheet.

    C / C++ / MFC csharp tutorial question

  • ATL and MFC simple data types
    T TBK

    If you have an ATL dll project you only need to check "Support MFC" in the first page of the wizard. If you are building a ATL exe project a little more work is involved. This info can be found in KB article Q173974 located at: http://support.microsoft.com/support/kb/articles/Q173/9/74.ASP?LN=EN-US&SD=msdn&FR=0 You should also consider linking to MFC statically if you are only using simple data types.

    C / C++ / MFC c++ help question

  • IWebBrowser2
    T TBK

    Try this (from ATL Internals) (also disables right click menu) CComPtr spAmbient; hr = m_axWebBrowser.QueryHost(&spAmbient); if(SUCCEEDED(hr)) { spAmbient->put_AllowContextMenu(VARIANT_FALSE); DWORD flags; spAmbient->get_DocHostFlags(&flags); spAmbient->put_DocHostFlags(flags | docHostUIFlagSCROLL_NO); }

    C / C++ / MFC com 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