Gray image for buttons which is disale on toolbar in MFC application - mfc-feature-pack

I have a problem in a MFC application
When I change DPI of windows 7 then I log off my computer
When windows is started, i open my application
My problem as bellow :
The button of toolbar Which is disabled was not grayed image
The image of this button is not grayed.
I have found many website about DPI and MFC but i did not find any articles for this problem
Can members of stackoverflow help me ?
Thank you very much.

Related

Windows 7 (and up) taskbar thumbnail preview not working

My app developped with Unity doesn't display the taskbar thumbnail preview in Windows 7. It just shows a blank square. Is there a setting that I'm forgetting to change here or something that I need to setup in app ?
How do I make this work ?
EDIT : Forgot to mention, this does work when the application is in Windowed mode, however when it is fullscreen and tabbed out the preview will be empty.

Simulating scroll gesture on windows phone 7 device without any manual event

How to simulate scroll gesture on windows phone 7 device without any manual event?
I want to scroll a PDF document that has been opened in the Adobe PDF viewer automatically on WP7. How can it be done?
Any views or ideas are welcome.
The Adobe PDF viewer for WP7 is an application. The WP7 architecture does not permit you to control or communicate with any other running application from your own application. Therefore, no, you cannot programmatically scroll a PDF document that the user has opened.
You might want to look at finding a PDF viewer control that you can embed within your application. See this related question:
PDF-viewer for Silverlight for Windows Phone 7 (SilverDox?)

Changing the Application Icon, Splash Screen etc through code in Windows Phone

Is it possible to change Application Icon, Splash screen etc through code, My requirement is i need to change these items after reaching a specific date say (jan-21-2012). Is there any provision present change these contents through code?
No, you cannot change these through code. These components of your application are specified via the manifest file. Regarding the Application Icon, you can have a 'live tile' for your application which is dynamic and can be changed. See MSDN:
How to: Create, Delete, and Update Tiles for Windows Phone
Maybe this blogpost about the dynamic splashscreen can help you?
http://windowsphonegeek.com/articles/All-about-Splash-Screens-in-WP7-ndash-Creating-animated-Splash-Screen
I don't think you can change the application icon this way. Do you have to change the icons multiple times through the year? Or is it one rebranding action? In that case i would suggest submit it with the new icons/splashscreen to the marketplace when you want it to change.
Here there are couple of articles about changing Splash screen:
Creating Animated Splash screen in Windows Phone7
Windows Phone 7 better Splash screen
You can extend techincs from articles above and implement your functionality.
Regarding to "Icon" use well known WP feature - Live Tiles (nice links in answers above).

Animate Windows Wallpaper with QT

i want to make an animated wallpaper for windows. So far i have only expreience with Mac OS X programming and i'm new to windows. So i decided to work with QT because it seems that there is more help out there.
Until now i have created the app in a borderless window in qt. It work quiet fine.
But is there a way in QT to change the level of the window so that its appear above the windows wallpaper but behind the icons?
EDIT:
Ok if found a simple solution.
After some testing with the hints form kusg1 I figured out when there is a transparent window mouse events going still to the desktop.
I actualy want have this website has wallpaper: Ticketack. - So i created a frameless window which stays on bottom and has a transparent background and displays the text. Beside this i can change the windows wallpaper directly to get the background of the clock.
So clock text is not behind the icons but i think this will be ok.
Just some ideas: Use the windows flag as Qt::Window | Qt::FramelessWindowHint + Windows Stay at bottom hint, and set the content of the widget with your animated content (the suitable candidate is to use QGraphicsView).
The widget needs two main tasks:
Upon launching, it grabs the desktop background as pixmap and do overlay with the animated content (this needs to have the desktop to be wallpaper-less for simple scenario).
The widget needs to capture mouse and focus event and channel back to actual window command if the user wants to click the icon on the desktop.
Update:
Some pointers for the implementation:
For managing desktop icon, there is a good article here! (also found from SO).
Qt example and demos has an example on the taking desktop snapshot, the snippet is: QPixmap::grabWindow(QApplication::desktop()->winId());
Answer to your question: no, there isn't.
However, you can try something like this using Windows API: How to draw directly on the Windows desktop, C#?

Windows Phone 7 - Silverlight Checkmark color

Can anyone tell me how I can change the color of my checkmark for a checkbox in Silverlight for Windows Phone 7 development?
I see some references on the web for changing a template but that is more for WPF or SilverLight apps, not WP7.
Right now I have a white background on my stackpanel and my background for my checkboxes are black. It would be sweet to make the checkmark white.
Any ideas?
UPDATE:
I should mention that I'm creating these checkboxes in the code behind (via a loop), and I'm using VS 2010 for my phone app development.
The Answer:
Thanks to Mick who lead me down the right path. I had to fiddle with it a little but I used MS Blend to create my own style and then I copied the XAML from there and put that style XAML in the App.xaml in between the tags.
Then I applied it in my code behind like this:
chk.Style = (Style)Application.Current.Resources["CheckBoxStyle1"];
You can access this by retemplating the control in Blend.
Target the check box.
Right click
Edit Template
Edit a Copy
Drill down to the CheckMark path
Change it's colour

Resources