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
R

rbrunton

@rbrunton
About
Posts
9
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • CImage processing
    R rbrunton

    Does CImage perform automatic image rotation when a JPG image is loaded? In an application I am writing I changed the EXIF orientation tag (0x0112) and to my surprise, the image displayed when CImage loaded and displayed that image changed its orientation. I would like to find a way to display a JPG image that is not affected by the EXIF orientation information. Specifically, the code I used is:

    CImage iPicture;
    iPicture.Load(sFullPath);
    CRect rDest(screen coordinates);
    CDC *pDC = GetDC();
    iPicture.TransparentBlt(pDC->m_hDC, rDest, RGB(0,0,0));

    C / C++ / MFC question

  • Search broken?
    R rbrunton

    I'm experiencing the same problem with search. As noted, it is Victoria Day weekend here in Canada, so folks may well be enjoying time away from work until Tuesday.

    Site Bugs / Suggestions question

  • Capturing mouse input outside a dialog
    R rbrunton

    PS - Pixie doesn't seem to address the key problem. Instead of using a left-mouse click to grab the colour at the particular location, pixie require keyboard shortcuts - Ctrl+Alt+c to copy HTML, Ctrl_Alt_X for to bring up the standard windows color dialog and Ctrl+Alt+Z to display a larger background of the color at the cursor. I would like to accomplish the selection with the left-mouse click as that seems a little more "natural" in a windows environment and then have the result in the main dialog screen of the application to manipulate it into various formats (HEX, RGB, HTML, etc.)

    C / C++ / MFC c++ php com help tutorial

  • Capturing mouse input outside a dialog
    R rbrunton

    Thanks David, I'll check it out as a tool, but I'm really looking to find out how to accomplish the task; essentially a programming learning experience.

    C / C++ / MFC c++ php com help tutorial

  • Capturing mouse input outside a dialog
    R rbrunton

    I am trying to create a dialog MFC application that reads the cursor position anywhere on the screen, finds the colour of the pixel at that location and reports the information back to the dialog application. I have tried SetCapture and I must be doing something wrong because the cursor location stops reporting as soon as the cursor leaves the client area of the dialog. I have also looked at the "Screen Color Picker" by Florin Vasilescu. That uses an OnTimer function that allows me to read the screen location, but does not report mouse actions (LBUTTONDOWN) so that I can read the pixel at the cursor location. I have also tried using SetWindowsHookEx and defining the MouseProc (as described by Vesi in the CodeGuru article "Modal dialog and outside mouse control". That wasn't successful. If I use the WH_JOURNALRECORD hook ID as described there appears to be an indeterminate delay between any mouse (or keyboard) action and interaction with screen objects. If I use the WH_MOUSE no mouse actions are detected. Could someone help me with how to either properly set SetCapture() or point me to where I might discover how to read mouse actions outside the dialog box? I'm happy to supply code, but at this point it's a bit of a mess since I've been trying everything. Thanks for any help you may be able to provide. Much appreciated.

    C / C++ / MFC c++ php com help tutorial

  • Setting System Clock in Vista (&7) - UAC problem
    R rbrunton

    I have written a program (C++/MFC) to obtain the correct time from a time server and set the system clock. Unfortunately, Vista & Win 7 with UAC enabled block this operation. How can I elevate the program's security privledge level so that I can set the clock? Is that the right approach? If not, how else might I go about it? I wouldn't have thought the system time would be that protected, but it obviously is. I am using a Code Project solution CSNTPClient class and the class function CSNTPClient::SetClientTime(CTime newTime) The solution on my own machine is to turn UAC off, but that's not practical or reasonable on other people's computers. Thanks. Ron

    C / C++ / MFC c++ question sysadmin security help

  • Accessing a running instance of a program
    R rbrunton

    I am trying to restrict operation to a single instance of my program (per user). Specifically, I create a shortcut in the "Send To" folder. If the program (an MDI program based on the MFC Doc/View architecture) is NOT running, right-clicking on a file in the Send-To context menu correctly runs the program with the file name as a command line argument. It I select the program again from the context Send-To menu a new instance of my program starts. What I would like to happen is that the new file is opened by the running instance of the program in a new MDI window. Could someone point me in the right direction for this? I did find code that prevents a second instance of the program from running. Unfortunately, it doesn't default to the OpenDocument option in the running instance of my program. (I'm using VS 2005, C++, MFC) TIA Ron

    C / C++ / MFC c++ visual-studio architecture question

  • Obtaining an Application's Folder
    R rbrunton

    Thanks to all who responded. Problem solved! Ron

    C / C++ / MFC c++ help

  • Obtaining an Application's Folder
    R rbrunton

    I am using MFC and want to know the application folder (typically, but not necessarily "C:\Program Files\MyProgram") so I can read and save an initialization file for the program. A program that uses the main() function, arg[0] is usually the program's command line with subsequent arg[n] being the additional command line parameters. CWinApp does not appear to provide this information and I have looked through the help files and the CodeProject message board without success. Any help would be greatly appreciated. TIA Ron

    C / C++ / MFC c++ help
  • Login

  • Don't have an account? Register

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