\r\n\r\n
Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Game Programming > DirectX > How to restore palette after alt-tab


\r\n \r\n
 
 
Thread Tools Display Modes

\r\n\r\n\r\n
I\'ve now got a grasp on 256 color mode, but the last problem I am having is trying to restore palettes after alt-tabbing. If I change some of the palette entires, I want them to remain that way when the program is restored.
\n
\nI\'ve tried several strategies to do this, most are restoring my proper palette but failing to restore the changes made to them. I\'ve tried saving a DirectDrawPalette, Array of PALETTEENTRY, or array of a custom structure similar to PALETTEENTRY- and nothing seems to be doing nothing.
\r\n \r\n\r\n
\r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n
\r\n __________________
\r\n Sell a man a fish, and he\'ll eat for a day. Teach the man to fish, and you\'re out of a job.\r\n
\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n
\r\n \r\n \r\n \r\n \r\n Reply With Quote\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n'; // next/previous post info pn[1215406] = "1215406,1215406"; pn[0] = ",1215406"; // cached usernames pu[0] = guestphrase; pu[114638] = "CtrlAltDestroy"; // -->
Prev Previous Post   Next Post Next
  #1  
Old 02-10-2007, 05:05 PM
CtrlAltDestroy's Avatar
CtrlAltDestroy CtrlAltDestroy is offline
Centurion
 
Join Date: Dec 2004
Posts: 108
Default How to restore palette after alt-tab


I've now got a grasp on 256 color mode, but the last problem I am having is trying to restore palettes after alt-tabbing. If I change some of the palette entires, I want them to remain that way when the program is restored.

I've tried several strategies to do this, most are restoring my proper palette but failing to restore the changes made to them. I've tried saving a DirectDrawPalette, Array of PALETTEENTRY, or array of a custom structure similar to PALETTEENTRY- and nothing seems to be doing nothing.
__________________
Sell a man a fish, and he'll eat for a day. Teach the man to fish, and you're out of a job.
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->