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

Search:

Type: Posts; User: JohnCz

Page 1 of 80 1 2 3 4

Search: Search took 2.43 seconds.

  1. Re: pointer to frame object created by runtime_class

    Hello robertzp.
    It is indeed a few years (=12 years)
    Of course
    But why? Before OnInitialUpdate controls are created but they are not subclasses yet.
    Main window is not shown (or is not supposed...
  2. Replies
    2
    Views
    846

    Re: problem with CEdit in CDialogBar

    It not edit control problem, it is a problem with creation of the accelerator.
    You should use modifier: Ctrl, Alt or both when creating accelerator.
  3. Re: How get same info as Win32_PortConnector from DeviceIoControl

    I am not sure what you are trying to achieve but from what I gather, you are comparing apples to oranges.

    MSDN:
    The Win32_PortConnector WMI class represents physical connection ports, such as...
  4. Replies
    18
    Views
    20,654

    Re: ComboBox List Drop-Down not showing?

    Resource editor uses WS_VSCROLL as part of the default set of styles. I do not think there is a need for tinkering with it.
  5. Replies
    18
    Views
    20,654

    Re: ComboBox List Drop-Down not showing?

    What version of VS and SDK you are using?
    Is it Win32 app or MFC based? What version of windows you are testing your app?
    I wrote sample program with initial number of items set to 20, and after...
  6. Re: Mfc..how to change font of string with menu button

    Is your view derived from CRichEditView?
  7. Replies
    2
    Views
    1,308

    Re: How to enumerate font styles for a given font

    Look into:
    EnumFonts
    EnumFontFamilies(Ex)
  8. Replies
    2
    Views
    2,009

    Re: Prevent a DLL from being loaded/injected

    In your case, the question to ask is: is this hook dll preventing only one (yours) application from running, or others too?
    If yours is the only one, it is most likely your application is a culprit....
  9. Re: Code reuse by handling CEdit ON_WM_SETFOCUS handler

    First of all: do not subclass your control using CEdit class. Derive your own from CEdit and then subclass the control.
    Secondly, CDialogEx does not implement ShowKeyboard function unless you are...
  10. Re: Mfc..how to change font of string with menu button

    vatralaus
    Could you please clarify?
    Are you having problem with changing font of the displayed text or you have a problem with font typeface selection?
    What is the type (class) of the window you...
  11. Replies
    6
    Views
    5,125

    Re: MFC "The parameter is incorrect"

    It is virtually impossible to resolve your problem without analyzing your code and debugging.
    Could you please attach your project in a compressed form? Do not include debug/release folders.
  12. Replies
    12
    Views
    5,829

    Re: MDI "More Windows..." dialog

    I am somewhat confused here.
    A question to OOP:
    Are you trying to override MFC MDI application default behavior or you are trying to implement MFC "More Windows…" behavior in Win32 application?
  13. Replies
    1
    Views
    2,257

    Re: MFC CTreeCtrl problem

    Is it necessary to delete and recreate tree item? You just chage a text and if you are using item data change it too.
  14. Re: Controls are flicker madly on resize. I'm trying double buffering but I still ...

    Yes, please post ypur code.
  15. Replies
    7
    Views
    2,448

    Re: [RESOLVED] Print preview ASSERT problem

    Can you compress and post your project?
    I was trying to follow your instructions but I am not able to duplicate the problem.
  16. Re: Controls are flicker madly on resize. I'm trying double buffering but I still ...

    OK, you have created project that does the same.
    The thing we are asking for is to compress (zip) entire project (solution, project, source and resource files) and attach it to your post.
    Before...
  17. Replies
    7
    Views
    2,448

    Re: Print preview ASSERT problem

    Indeed, OnPreparePrinting() and OnPrepareDC() should initialize device context properly.
    If you do not need something fancy to print, OnDraw should handle printing as it were a screen.
    It is really...
  18. Re: Controls are flicker madly on resize. I'm trying double buffering but I still ...

    I am not sure why did you deliver executable. Did misunderstood Igorís post?
    He meant to create project that reproduces a problem, so we will have a chance to see the cause not the effect.
  19. Replies
    7
    Views
    2,448

    Re: Print preview ASSERT problem

    It tells you that your CDC object does not have windows device context attached to it.
    I do not know how you instantiate CDC object but both: m_hAttribDC and m_hDC are initiated to the same value...
  20. Replies
    3
    Views
    751

    Re: String to Char *

    You can convert string to LPTSTR (or TCHAR) using LPCSTR operator:


    CString csTest(_T("Testt String"));

    LPTSTR lpszBuff = (LPTSTR)(LPCTSTR)csTest;
    TCHAR* pszBuff = ...
  21. Replies
    6
    Views
    5,677

    Re: MFC Multiple views for different graphs

    That depends.
    I do not know how received data is delivered.
    If delivery contains data that is common for all graphs, I would keep data in the document and each view would ask document for needed...
  22. Replies
    3
    Views
    4,369

    Re: win registry function help

    You can use std vector or map whatever suits you better.
    If you have MFC support, you can use MFC native equivalents: CStringList or CMap
  23. Replies
    10
    Views
    1,790

    Re: Non-English System Folders.

    John,
    Is your application using hard coded location of the installed program?
    You should use SHGetFolderPath to retrieve program files.
    There is more to take under consideration:
    32-bit program...
  24. Replies
    6
    Views
    5,677

    Re: MFC Multiple views for different graphs

    You have two choices: register different templates for each graph and invoke new file for each of them.
    The drawback is you will have document object created for each template.

    If you are using...
  25. Re: How to reference a value from earlier in your code?

    Use variables to store responses.
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)