In this article http://www.codeproject.com/bitmap/creategrayscaleicon.asp[^] there's a function that changes an icon to a gray scale icon. I want a function to change color 1 of an icon to color 2. So, all pixels having color 1 --> changed to be of color 2. Any ideas or links? Thanks.
Geert Delmeiren
Posts
-
How to change icon colors on the fly? -
Switching listbox style => scroll bar goneHello colleague-CP'ers, Situation: I need to switch a listbox from single selection mode to multiple selection mode. I use the code found at http://www.codeproject.com/combobox/RecreateListBox.asp[^] that in fact recreates the listbox. Problem: After recreating my listbox (that contains a lot of items) it doesn't have a scroll bar anymore. The scroll bar is GONE! Anybody an idea? Anybody had the same? Other ideas to make a single selection list box a multiple selection one and vice versa? Geert
-
Copyright sign © in about boxNothing suspicious. Language is English (U.S.) and the © character is perfectly visible. Must be something with XP I guess. Geert.
-
Copyright sign © in about boxHi Rickard, I'm using the standard MS Sans Serif (size 8). So, it's not that this symbol doesn't exist in that font. Thanks for your reaction. Geert.
-
Copyright sign © in about boxInstead of using (c) in the About box I used the real symbol ©. On my machine and a lot of others it is perfectly visible. But, I have a colleague (who runs XP) who doesn't see that symbol in the about box. Instead he sees a '?'. Also, when he opens my project in MSDEV, he can't see the ©, but again sees a '?' instead. When he looks e.g. at the about box of Outlook the © is perfectly visible. Any ideas on how to solve this? Thanks.
-
How to detect that the system clock has been set backwards?The scenario you suggest fails in the following case: Time line: A1 < A2 < X < E < Y My App is started at A1 end stopped at A2. My app informs the user that his license will expire at E. At time Y the user does the following: - he sets back the clock to X - he starts up my app When my app starts A2 < X, so it doesn't detect any cheating. How can my app know - the computer ever ran at Y (>E)? - the license is expired
-
How to detect that the system clock has been set backwards?I don't think this will work. The last accessed timestamp of the file user32.dll is updated with a date of the past, when you set backwards the clock. But you can't check that. The computer thinks 'now' is that date in the past. Some more details about my question: Time line: A1 < A2 < X < E < Y My App is started at A1 end stopped at A2. My app informs the user that his license will expire at E. At time Y the user does the following: - he sets back the clock to X - he starts up my app How can my app know - the computer ever ran at Y (>E)? - the license is expired
-
How to detect that the system clock has been set backwards?That was an issue I indeed already thought of. Nevertheless, thanks for the input.
-
How to detect that the system clock has been set backwards?Daniel Ferguson wrote: Check the date/time of important system files. Can you give some examples? Is it possible it could work from Win95 upto WinXP?
-
How to detect that the system clock has been set backwards?Hi, Does anyone have an idea (tips, links, code) how my app can detect that the system clock is set backwards? I want to know even when my app was not running at the time of change and/or the PC has been rebooted. Thanks.
-
Searching problems?I was pressing 'Next' when I got 'No matches found'.
-
Searching problems?I was looking for an article I saw some time ago about a prog to change the display mode via a simple command line program. So, I typed in "change display mode". Result: Page 1 of 10 (items 1 - 10 of 100) I didn't find it within the first 10 articles, so I press . Result: No matches found.:( What's wrong? :confused:
-
CRect::Width() and CRect::NormalizeRect()Before asking Chris to add this one as a 'bug' in MSDN, maybe someone can shed a light on the following. In MSDN for CRect::Width() I read: Calculates the width of CRect by subtracting the left value from the right value. The width can be negative I read something analog for CRect::Height(): Calculates the height of CRect by subtracting the top value from the bottom value. The resulting value can be negative. And in a note for both: The rectangle must be normalized or this function may fail. You can call NormalizeRect to normalize the rectangle before calling this function. While I read for CRect::NormalizeRect(): Normalizes CRect so that both the height and width are positive. Then is my question: "How can the result of CRect::Width() or CRect::Height() be negative if you must normalize it first?
-
MS File version checkerI think you mean the DLL help database: http://support.microsoft.com/servicedesks/fileversion/dllinfo.asp Geert.
-
Opinions on colours, fonts etcHi Chris, The Verdana font is the best choice you can make: it's designed for its good readability. You have a nice, sober, professional looking site. Keep it like that!!! (read my suggestion about remembering the collapsed states of the chapters at the left) Geert. ================== The original message was: I'd like some opinions on the colours, fonts, and font sizes used. Some people love them, some people hate them - but if there is anything in particular that would make the site easier to read or navigate then I'd like to hear from you guys.
cheers,
Chris -
Remembering collapsed stateHi, Nice, interesting and useful site. I'll surely keep an eye on it! It would be nice that when I decide to collapse e.g. the "Controls" chapter at the left it would STAY collapsed on all other pages I visit (until I decide the opposite again) Geert.