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
K

Kurt 0

@Kurt 0
About
Posts
20
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Date-Time Picker Ctrl Checkbox
    K Kurt 0

    Hi would ctrlDate.EnableWindow(FALSE) do? Kurt

    C / C++ / MFC

  • Creating A Dialog Window from a Win32 Console program
    K Kurt 0

    Hi Dave I think what is missing is ShowWindow(SW_SHOW); NULL as a parent works fine, I tested it CTestDlg::CTestDlg(CWnd* pParent) : CDialog(CTestDlg::IDD, pParent) { Create(CTestDlg::IDD, pParent); ShowWindow(SW_SHOW); }

    C / C++ / MFC

  • ICM TranslateColors Problems
    K Kurt 0

    Has anyone successfully used ICM? I’m trying to write some color correction software using ICM and am running into what appear to be major bugs. I have the same software running on the Macintosh with ColorSync (the Macintosh equivalent of ICM) very well. If anyone does know ICM I’d really like to hear what you think of the following problems: Originally, my calls to TranslateColors would often crash. I was passing arrays of the ICM COLOR structure along with pixel counts. After hours of pouring through all code and documentation, I debugged into ICM's 80x86 assembly code and found that it expects 16 bytes per pixel. The COLOR structures are only 8 bytes per pixel so this doesn't make any sense. I can work around this immediate problem by allocating twice as much space for my buffers as necessary but this is a strong warning sign that either I’m doing something seriously wrong or that the current release of ICM isn’t usable. My image comes through roughly correctly which indicates that I’m formatting my pixel data as ICM is expecting it. However I often get strong bizarre casts in the images I get back from TranslateColors. Especially when going from CMYK to RGB, the images look terrible. Is anyone aware of sample code that uses TranslateColors? Is anyone aware of free software that will use ICM (preferably through TranslateColors) on an image? Are there any other Internet resources for ICM development? Thanks, Kurt

    C / C++ / MFC

  • number of control on a dialog resource
    K Kurt 0

    As far as I know the resource compiler will not handle more than 255 controls correctly. May bew you could write you static text dynamically onto the view instead of using a control for every single text. Kurt

    C / C++ / MFC

  • Serializing data structures
    K Kurt 0

    Look at how the CStrokeList in the Scribble example is serialized - exactly what you need.

    C / C++ / MFC

  • Multiple Document Types
    K Kurt 0

    Just add more document template(s) for your other doc/views and see what happens when you select File / New. You'll be able to go on from there. Else the VIEWEX sample that came with Visual Studio does what you want.

    C / C++ / MFC

  • Does any one know how to create that page break line in an edit box??
    K Kurt 0

    Hi simply use DrawText or ExTextOut of the CDC class. Kurt

    C / C++ / MFC

  • Splitter windows without MFC
    K Kurt 0

    Hi sure. MFC does it using the Win32 SDK after all - so I guess looking at the way MFC does it should show you how to do it. Kurt

    C / C++ / MFC

  • Warning C4275 non dll-interface class
    K Kurt 0

    Hi seems to me that you are using MFC staticaly linked, so CDialog isn't in a DLL but in the lib. Guess youget rid of that warning when you use MFC as a shared DLL.

    C / C++ / MFC

  • How To : center a CFormView in a SDI app ???
    K Kurt 0

    In OnInitalUpdate just call CenterWindow();

    C / C++ / MFC

  • Coloring the PropertySheet
    K Kurt 0

    Hi do something like HBRUSH CMyDlg::OnCtlColor(CDC *pDC, CWND *pWnd, UINT nCtl) { if (CTLCOLOR_STATIC == nCtl) // or CTLCOLOR_EDIT { int i = GetDlgItemInt(pWnd->GetCtrlID()); if (0 > i) pDC->SetTextColor(RGB(255, 0, 0)); ) return CDialog::OnCtlColor(pDC, pWnd, nCtl); }

    C / C++ / MFC

  • Problem is registering a dll??
    K Kurt 0

    Hi if it registers on some machines but not others I guess that there is at least 1 DLL missing on the failing machine. Use the Depend tool os Visual Studio to find out what DLLs you need exactly Kurt

    C / C++ / MFC

  • ListView control
    K Kurt 0

    Hi I think you should use the HDN_* notification messages, together with HD_HITTESTINFO and may be WM_MOUSEMOVE and then if conditions are fullfilled just not route these messages any further. Kurt

    C / C++ / MFC

  • PreTranslateMessage, how to check key combination like Ctrl+R
    K Kurt 0

    if (0 > GetKeyState(VK_MENU)) ALT Key down if (0 > GetKeyState(VK_CONTROL)) CTRL Key down and so on Kurt

    C / C++ / MFC

  • How to use ActiveX without dialog ?
    K Kurt 0

    Hi just add the ActivX to your project (Project / Add to project / Components / ActiveX. This will create a cpp and a header file and you can just call Create(..). No need for a dialog at all. Kurt

    C / C++ / MFC

  • Help!! How to change the ListBox and EditBox background & text color without using MFC!! Thanks..
    K Kurt 0

    The WM_CTLCOLORLISTBOX message is sent to the parent window of a list box before the system draws the list box. WM_CTCOLOREDIT too. By responding to this message, the parent window can set the text and background colors of the list box by using the given display device context handle. WM_CTLCOLORLISTBOX hdcLB = (HDC) wParam;// handle to list box display context hwndLB = (HWND) lParam; // handle to list box This is for 32 bit only for 16 you have just WM_CTLCOLOR and then need to switch on the WPARAM

    C / C++ / MFC

  • How to determine a starting application
    K Kurt 0

    Hi look at EnumProcesses and EnumProcessModules

    C / C++ / MFC

  • Is it a Text file?
    K Kurt 0

    Hi Just use a CFile and read it. Go through the data using isalnum and as soon as you get a FALSE return and it is not a carriage return or line feed you'll know it is binary.

    C / C++ / MFC

  • Pointer to dialog
    K Kurt 0

    Hi either make your parsing class a member of your dialog or your dialog a member of your parsing class. Or use FindWindow(...) from your parsing class.

    C / C++ / MFC

  • OCX / COM Server
    K Kurt 0

    Hi Send and Receive the WM_COPY message

    C / C++ / MFC
  • Login

  • Don't have an account? Register

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