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
A

alex__b

@alex__b
About
Posts
31
Topics
12
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Registry file associations
    A alex__b

    Hi, I want to point the double-click handler for .dll files to my program instead of the default handler. There arise some questions: 1. can it do any harm? dll’s being system files. 2. How do I keep the option of calling the default handler from my program? 3. I tried the Microsoft docs but the documentation is very long and confused. I’ll be grateful for a pointer to a concise documentation of registry file associations, maybe some examples. Many thanks.

    alex 'Architecture is music frozen in space.'

    Windows Development question windows-admin architecture

  • TreeView-based custom control
    A alex__b

    Well, you're right. It was from exasperation with not being able to make it work, and the cause was a stupid mistake (mine to be sure). I got it a few minutes ago. Thank you and Sorry.

    alex 'Architecture is music frozen in space.'

    C# data-structures architecture help

  • TreeView-based custom control
    A alex__b

    Hi I'm trying to create a custom control based on TreeView, to be used in other programs. The control should read the disc folder structure and display it. The control builds OK, finds the data and builds the tree items. Trouble is, in the host program, nothing is visible. Any help will be appreciated.

    alex 'Architecture is music frozen in space.'

    C# data-structures architecture help

  • CoInitialize return code
    A alex__b

    I know that and I haven't been able to find this code either. 3 is supposed to be a success code (bit 0 == 0), but apparently it is not. I am using SUCCEEDED, but the program kept failing further down the line, so I ran it thru the debugger and this is the HRESULT CoInitialize() returns.

    alex 'Architecture is music frozen in space.'

    COM com architecture question

  • CoInitialize return code
    A alex__b

    Hello I have this program which uses a COM DLL. On one computer all works fine. On another machine, coinitialize keeps returning 3 and fails. Anybody seen this return code before? Thanks

    alex 'Architecture is music frozen in space.'

    COM com architecture question

  • Getting hardware info
    A alex__b

    I set the display to large fonts and it still says 96 dpi. >it *should* come back with the same mm size that was reported with normal fonts It does, but the reported size is wrong.

    alex 'Architecture is music frozen in space.'

    Hardware & Devices hardware architecture question

  • Getting hardware info
    A alex__b

    The values you compute are based on the results of GetLogPixels() which returns pixels/inch. On my machine it seems I get 96dpi no matter what I do (i.e. no matter the screen resolution), so the result of the calculation is (very close to) what the system reports. 1. It seems there is a problem with the results of GetLogPixels(): it always returns 96. Look it up on the web. 2. What I am interested in is to interrogate the display device (EDID data) directly. Even so, it seems that the EDID data is sometimes erroneous or even completely missing (fault of manufacturer). Again, see the web.

    alex 'Architecture is music frozen in space.'

    Hardware & Devices hardware architecture question

  • Getting hardware info
    A alex__b

    Thank you for answering. As I wrote, I need the physical screen size (in milimeters), and GetSystemMetrics(SM_CXSCREEN) returns pixels. The problem is GetDeviceCaps(HORZSIZE/VERTSIZE) is supposed to return the screen size in milimeters, but gives incorrect answers. That's why I'm looking for the way to directly get the data from the hardware.

    alex 'Architecture is music frozen in space.'

    Hardware & Devices hardware architecture question

  • Getting hardware info
    A alex__b

    Hi I need to get - programatically - the graphic display's properties (specifically the x and y physical dimensions). I found that using GetDeviceCaps(HORZSIZE) returns erroneous answers. Is there any other way to get the info (maybe by communicating directly with the device), short of asking the user to measure the screen :) ? Thanks

    alex 'Architecture is music frozen in space.'

    Hardware & Devices hardware architecture question

  • Repainting a List Control
    A alex__b

    Anybody?? I'm really stuck with this one. Thanks alex 'Architecture is music frozen in space.'

    C / C++ / MFC architecture help question

  • Repainting a List Control
    A alex__b

    Mike: I agree. But it doesn't (not one, not even all 3). I see the selection again only if manually I click on one of the list headers. alex 'Architecture is music frozen in space.'

    C / C++ / MFC architecture help question

  • Repainting a List Control
    A alex__b

    I'm talking about keeping the selection, and just being able to see it again. alex 'Architecture is music frozen in space.'

    C / C++ / MFC architecture help question

  • Repainting a List Control
    A alex__b

    Hello I have this list control in a dialog class: CListCtrl m_LIST1; One of the class methods launches a modal dialog after the user selects some items on the list. The problem is when it returns, the selected items in the list control are not painted any more, although the selection is preserved. To repaint i did what F1 said (see code) but it won't work. What am i doing wrong? void CxwApp::OnWrite() { CWriteDlg writeDlg; writeDlg.DoModal();// //repaint the selected items m_LIST1.RedrawItems(start, end); m_LIST1.Invalidate(); m_LIST1.UpdateWindow(); m_LIST1.RedrawWindow(); ..... } alex 'Architecture is music frozen in space.'

    C / C++ / MFC architecture help question

  • Class wizard
    A alex__b

    Sorry about the 'understandability'. Maybe it's my English. alex 'Architecture is music frozen in space.'

    C / C++ / MFC c++ architecture

  • Class wizard
    A alex__b

    Thank You. Does that mean that if i .SetCheck() for one of them, the other is automatically unchecked? alex 'Architecture is music frozen in space.'

    C / C++ / MFC c++ architecture

  • Class wizard
    A alex__b

    i know. it's just i would like to keep them synchronized - it's handyer. any idea how to fix it? alex 'Architecture is music frozen in space.'

    C / C++ / MFC c++ architecture question

  • Class wizard
    A alex__b

    1. NO 2. NO 3. What do you mean 'create'? 4. There is no code; that is the problem: without the class wizard showing the control, i can't attach a handler to it. alex 'Architecture is music frozen in space.'

    C / C++ / MFC c++ architecture question

  • Class wizard
    A alex__b

    I have a dialog with 2 radio buttons (beside many others). Both buttons appear OK in the .h, .rc and .clw files, but the class wizard shows only one (even after deleting the .clw file and rebuilding). MFC. :confused: thanks alex 'Architecture is music frozen in space.'

    C / C++ / MFC c++ architecture

  • Class wizard
    A alex__b

    I have a dialog with 2 radio buttons (beside many others). Both buttons appear OK in the .h, .rc and .clw files, but the class wizard shows only one (even after deleting the .clw file and rebuilding). MFC. ??? thanks alex 'Architecture is music frozen in space.'

    C / C++ / MFC c++ architecture question

  • Finding my way in NYC
    A alex__b

    Thank you for answering, but no. It was either MFC or WIN32 (before C#, .net etc) What I do remember, the demo drew a polyline (orthogonal segments only) and allowed the user to move those points while keeping the orthogonality. alex 'Architecture is music frozen in space.'

    C / C++ / MFC c++ algorithms architecture 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