Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
gw gw is offline
external usenet poster
 
Posts: 3
Default Prevent loss of SetPixel changes by window repaint

Sorry if this is not a suitable topic for this group. Please advise of an more suitable group if one exists.

BACKGROUND:
I need to apply cross-hairs to the view finder window of a digital camera remote capture program for a specialized surveying application. Specifically, this is for the Canon ZoomBrowser Ex 5.0 remote capture feature. This program allows me to obtain photographs remotely while monitoring on my laptop what would be displayed on the camera's LCD screen. I have modest experience using Windows API functions. I have had some success using FindWindowEx, GetDC, ReleaseDC, SetPixel etc.

PROBLEM:
If I apply the cross-hairs to the view finder window they are immediately deleted because this window is constantly updated. I was able to apply usable red notches at the periphery of the view finder window to its parent window. However, once a photo is taken an overlapping progress bar is displayed that shows the offloading of the photo to my laptop. When it completes there is a repaint which deletes my red notches.

QUESTION:
Does anyone have any suggestions? I am thinking of perhaps using CreateDC or CreateCompatibleDC to create my own overlapping DC to the view finder window. Maybe it won't get cleared? I have no experience with these functions, experimenting will take some time and I am running out of time. I am also not optimistic.

Best regards,

Greg Wilson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
hardship letter explaining devastating loss property loss financi carol Excel Discussion (Misc queries) 1 June 12th 09 02:13 PM
Excel window repaint slow/stuck hmm Excel Discussion (Misc queries) 1 August 13th 08 02:44 PM
another "to prevent possible loss of data, Microsoft Excel cannotshift nonblank cells off the worksheet." [email protected] Excel Programming 3 March 1st 08 04:11 PM
Macro Window - Prevent 'Run' WCM Excel Programming 2 May 1st 07 06:48 PM
Excel does not repaint nodari Excel Programming 0 May 20th 04 04:39 PM


All times are GMT +1. The time now is 11:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"