Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Dynamically changing a bitmap image on pc

Thread Tools
 
Search this Thread
 
Old 04 February 2002, 10:06 AM
  #1  
MrDeference
Scooby Regular
Thread Starter
 
MrDeference's Avatar
 
Join Date: Mar 2002
Posts: 337
Likes: 0
Received 0 Likes on 0 Posts
Post

Bleurgh Don't know much about VB.

Found this , which may help...

EDIT for clickablity




[Edited by MrDeference - 4/2/2002 10:08:19 AM]
Old 27 March 2002, 09:54 AM
  #2  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Post

On our desktop machines we have a standard build but with various changes per department at login, and sms etc..

What I am wanting to do is dynamically change the bitmap (desktop background) to include a build version number and department name at the bottom... can this be done???

Regards

David
Old 27 March 2002, 10:22 AM
  #3  
IWatkins
Scooby Regular
 
IWatkins's Avatar
 
Join Date: Mar 2000
Location: Gloucestershire, home of the lawnmower.
Posts: 4,531
Likes: 0
Received 0 Likes on 0 Posts
Post

Hi David,

Take a look at: http://www.sysinternals.com/ntw2k/freeware/bginfo.shtml

With a bit of tweaking, should give you what you need.

Cheers

Ian
Old 27 March 2002, 03:26 PM
  #4  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Post

Cheers..

That is ^%$£ing brilliant...that's one of those utilitys that will be kept in my collection...

Just out of interest does anybody know the theory behind this Ie How to do it?

David
Old 27 March 2002, 03:34 PM
  #5  
DJ Dunk
Moderator
Support Scoobynet!
iTrader: (5)
 
DJ Dunk's Avatar
 
Join Date: Nov 2001
Location: Not all those who wander are lost
Posts: 17,863
Received 0 Likes on 0 Posts
Cool

That is
Old 27 March 2002, 03:55 PM
  #6  
Fosters
Scooby Regular
 
Fosters's Avatar
 
Join Date: Jul 2000
Location: Islington
Posts: 2,145
Likes: 0
Received 0 Likes on 0 Posts
Post

In VB...

Capture the form...
Public Function CaptureWindow(ByVal hWndSrc As Long, ByVal Client As Boolean, ByVal LeftSrc As Long, ByVal TopSrc As Long, ByVal WidthSrc As Long, ByVal HeightSrc As Long) As Picture

Save it...
SavePicture Picture1.Picture, "c:\windows\bitmap.bmp"
Old 27 March 2002, 04:22 PM
  #7  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Post

Ill try that when I get home, but to do that wouldnt you have to display the bmp??

David

Trending Topics

Old 27 March 2002, 04:49 PM
  #8  
Puff The Magic Wagon!
Moderator
Support Scoobynet!
iTrader: (2)
 
Puff The Magic Wagon!'s Avatar
 
Join Date: May 2000
Location: From far, far away...
Posts: 16,978
Received 15 Likes on 9 Posts
Cool

That is a useful little util

Thanks Ian

If nothing else, you can see how long someones been logged in for - ie what time they started work

Old 27 March 2002, 04:54 PM
  #9  
MrDeference
Scooby Regular
Thread Starter
 
MrDeference's Avatar
 
Join Date: Mar 2002
Posts: 337
Likes: 0
Received 0 Likes on 0 Posts
Post

David,
Do you mean programatically?
Short description...

There is something called a device context - a representation of a drawing surface. Create a bitmap with the Win32API call, CreateCompatibleBitmap. Create a memory DC and select the bitmap into it. Draw text retrieved from a SYSTEM_INFO structure into the DC. Save to file.
Old 27 March 2002, 07:21 PM
  #10  
Fosters
Scooby Regular
 
Fosters's Avatar
 
Join Date: Jul 2000
Location: Islington
Posts: 2,145
Likes: 0
Received 0 Likes on 0 Posts
Post

If you want to check when people started work, look in their event viewer.
Old 28 March 2002, 03:35 PM
  #11  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Post

MrDeference, thats exactly what I mean..

I like the app and its almost perfect, but im one of these people thats never happy.. and like to modify things... like i want it to choose which background to use ie 800x600 , 1024x768 etc.. without having to stretch it..

And would rather write the app internally than use a third party tool... (even though I have just rolled that out..)

David
Old 28 March 2002, 04:59 PM
  #12  
MrDeference
Scooby Regular
Thread Starter
 
MrDeference's Avatar
 
Join Date: Mar 2002
Posts: 337
Likes: 0
Received 0 Likes on 0 Posts
Post

Good luck.
It should be quite simple to do, particularly if you use MFC, as all the required APIs are wrapped up in easy to use classes.
If you get stuck give us a shout...
Old 31 March 2002, 03:14 PM
  #13  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Post

Ill be doing it in VB 6... Or trying to...

David
Old 31 March 2002, 03:16 PM
  #14  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Post

Ill be doing it in VB 6... Or trying to...

David
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
JimBowen
ICE
5
02 July 2023 01:54 PM
Pro-Line Motorsport
Car Parts For Sale
1
30 November 2015 05:52 PM
hardcoreimpreza
Computer & Technology Related
21
11 October 2015 03:40 PM
Brumguy34
Subaru Parts
8
04 October 2015 07:51 PM
bloomydj
Subaru Parts
1
29 September 2015 09:15 PM



Quick Reply: Dynamically changing a bitmap image on pc



All times are GMT +1. The time now is 12:00 PM.