CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: NextMoveBX

Page 1 of 13 1 2 3 4

Search: Search took 0.08 seconds.

  1. Replies
    4
    Views
    961

    Try adding ES_AUTOHSCROLL to the styles in the...

    Try adding ES_AUTOHSCROLL to the styles in the Create function
  2. Replies
    1
    Views
    503

    Re: Help me about developper program !!!

    Have a look at:
    http://www.uk.research.att.com/vnc/
  3. Replies
    3
    Views
    742

    Re: Error Starting Program

    And you might want to try building a release version of your program rather than a debug (MFC42D.DLL is the debug version of the library). It will be much smaller, and it's more likely the release...
  4. Replies
    1
    Views
    603

    Re: Set toolbar button checked

    In your CMainFrame class:

    m_wndToolBar.GetToolBarCtrl().CheckButton(ID_FILE_NEW,TRUE);
  5. Replies
    3
    Views
    954

    Re: Horizontal Scroll Bar Problem

    You need to set the Horizontal scroll property of the listbox in the dialog resource AND call SetHorizontalExtent (or post the LB_SETHORIZONTALEXTENT message).

    Here's a link to a previous...
  6. Replies
    3
    Views
    954

    Re: Horizontal Scroll Bar Problem

    Have a look at the documentation for CListBox::SetHorizontalExtent or LB_SETHORIZONTALEXTENT on MSDN
  7. Replies
    2
    Views
    829

    Re: CAxDialogImpl

    The GetDlgItem member of CWindow returns an HWND, which is causing your first error.

    Try:RECT rc;
    ::GetClientRect(GetDlgItem(IDC_STATIC_CONTROL),&rc);
  8. Thread: Aggreation

    by NextMoveBX
    Replies
    4
    Views
    682

    Re: Aggreation

    If it's any help, you can get the IDL file by viewing type information of an object in OLEView and selecting file Save As.
  9. Re: list view LVSCW_AUTOSIZE_USE_HEADER doesn't work

    Try using LVSCW_AUTOSIZE_USEHEADER. There's no underscore between USE and HEADER.

    Hope this helps!
  10. Re: taking off the resize option of a window in MFC

    Try removing the WS_THICKFRAME style.

    You might like to have a look at the Knowledge Base article Q133256 on the MSDN too.
  11. Replies
    1
    Views
    540

    Re: XML and Release()?

    IXMLDOMNodePtr is a 'smart' pointer, so will take care of the reference-counting for you. If you want to use the raw pointer IXMLDOMNode* then you *do* need to call Release when you've finished with...
  12. Thread: Aggreation

    by NextMoveBX
    Replies
    4
    Views
    682

    Re: Aggreation

    Have a look at importlib
  13. Replies
    1
    Views
    5,823

    Re: GetTextExtentExPoint function

    Have you considered using DrawText instead of TextOut? It does simple formatting like wordwrap for you (DT_WORDBREAK) and it will also calculate the rectangle a given string will occupy when drawn...
  14. Replies
    6
    Views
    4,504

    Re: SHGetFolderPath... AGAIN !

    You forget to mention that this may require the redistribution of ShFolder.dll
  15. Replies
    6
    Views
    4,504

    Re: SHGetFolderPath... AGAIN !

    You can use SHGetSpecialFolderPath instead:
    TCHAR strBuffer[MAX_PATH];
    SHGetSpecialFolderPath(NULL,strBuffer,CSIDL_FAVORITES,FALSE);
    SHGetSpecialFolderPath(NULL,strBuffer,CSIDL_PERSONAL ,FALSE);
  16. Replies
    1
    Views
    684

    Re: COM enumeration

    Have a look on MSDN for IEnumXXXX
  17. Re: how can I check if the first char in a std::string is a number or not?

    Try the CRT function isdigit:if (isdigit(str[0]))
    {
    // It's numeric...
    }
  18. Thread: Macros?

    by NextMoveBX
    Replies
    2
    Views
    677

    Re: Macros?

    Have a look at http://support.microsoft.com/default.aspx?scid=kb;EN-US;q237870
  19. Replies
    7
    Views
    3,702

    Re: SafeArray Dimension

    Er, I think you might need something like this:Manual* pManuals;
    SafeArrayAccessData(psa, (void**)&pManuals);
    for (int i = 0; i < psa->rgsabound->cElements; i++)
    {
    // do something with...
  20. Replies
    7
    Views
    3,702

    Re: SafeArray Dimension

    That sounds like an array then? Therefore, you can just useSAFEARRAYBOUND bounds = { topEnd, 0 };
    pManualArray = SafeArrayCreateEx(VT_RECORD,1,&bounds,pRecInfo);

    and call redim if you need to...
  21. Replies
    7
    Views
    3,702

    Re: SafeArray Dimension

    A return value of NULL indicates that the function has failed.

    Are you really after a 20-dimension array, or are you after a 2D array (matrix) where one dimension is 20?
  22. Replies
    7
    Views
    3,702

    Re: SafeArray Dimension

    The second parameter to SafeArrayCreateEx is the number of dimensions, but you've hard-coded it as 1.
  23. Thread: CFileDialog

    by NextMoveBX
    Replies
    1
    Views
    689

    Re: CFileDialog

    Check out the nFilterIndex member of the OPENFILENAME structure (m_ofn member of CFileDialog).dlg.m_ofn.nFilterIndex
  24. Replies
    1
    Views
    633

    Re: Ellipse frame drawing

    Try selecting a null brush GetStockObject(NULL_BRUSH);

    into the DC first.
  25. Re: Problems with "Browse For Folder" dialog

    Try this:IShellFolder* psfDeskTop = NULL;
    LPITEMIDLIST pidlStartDir = NULL;
    HRESULT hr = ::SHGetDesktopFolder(&psfDeskTop);
    if (SUCCEEDED(hr))
    {
    hr = psfDeskTop->ParseDisplayName(NULL, NULL,...
Results 1 to 25 of 321
Page 1 of 13 1 2 3 4





Click Here to Expand Forum to Full Width

Featured