Click here to Skip to main content
15,900,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Translating virtual key codes into human readable format Pin
Jörgen Sigvardsson22-Aug-04 12:15
Jörgen Sigvardsson22-Aug-04 12:15 
GeneralRe: Translating virtual key codes into human readable format Pin
PJ Arends22-Aug-04 12:28
professionalPJ Arends22-Aug-04 12:28 
GeneralRe: Translating virtual key codes into human readable format Pin
Jörgen Sigvardsson22-Aug-04 12:30
Jörgen Sigvardsson22-Aug-04 12:30 
GeneralRe: Translating virtual key codes into human readable format Pin
Jörgen Sigvardsson23-Aug-04 10:19
Jörgen Sigvardsson23-Aug-04 10:19 
GeneralGetModuleHandle Problem Pin
Abin22-Aug-04 0:50
Abin22-Aug-04 0:50 
GeneralRe: GetModuleHandle Problem Pin
Blake Miller30-Aug-04 7:05
Blake Miller30-Aug-04 7:05 
GeneralDirectShow error Pin
Andre Massada21-Aug-04 22:37
Andre Massada21-Aug-04 22:37 
GeneralWSB_PROP_PALETTE Pin
Franc Morales21-Aug-04 20:09
Franc Morales21-Aug-04 20:09 
Folks,
I'm trying to customize the look of the standard scrollbars.
I have first made them flat with InitializeFlatSB and have modified their size and background color with FlatSB_SetScrollProp and flags WSB_PROP_CYHSCROLL and WSB_PROP_HBKGCOLOR. So far so good.

PROBLEM is that the flag WSB_PROP_PALETTE (requiring a HPALETTE struct as new value) does not affect the appearance of the scrollbars despite the function FlatSB_SetScrollProp success. The test code I use is as follows:

<br />
int nNumColors = 20;<br />
LPLOGPALETTE  pLogPalette = (LPLOGPALETTE)new BYTE[sizeof(LOGPALETTE) + nNumColors * sizeof(PALETTEENTRY)];<br />
<br />
pLogPalette->palNumEntries = nNumColors;<br />
pLogPalette->palVersion = 0x300;<br />
<br />
for( int i = 0; i < nNumColors; i++ )<br />
{<br />
  pLogPalette->palPalEntry[i].peBlue = 100 + ( i * 5 );<br />
  pLogPalette->palPalEntry[i].peRed = 0;<br />
  pLogPalette->palPalEntry[i].peGreen = 0;<br />
  pLogPalette->palPalEntry[i].peFlags = 0;<br />
}<br />
<br />
CPalette pal;<br />
<br />
pal.CreatePalette(pLogPalette);<br />
    <br />
BOOL bSuccess = FlatSB_SetScrollProp( this->GetSafeHwnd(), WSB_PROP_PALETTE, (int)(HPALETTE)pal.Detach(), TRUE );<br />


Suggestions?
Be well,

Franc
GeneralRe: WSB_PROP_PALETTE Pin
Junaij21-Aug-12 19:46
Junaij21-Aug-12 19:46 
Generalvisual studios 6.0 question Pin
Tyrus18221-Aug-04 18:22
Tyrus18221-Aug-04 18:22 
GeneralRe: visual studios 6.0 question Pin
Ravi Bhavnani21-Aug-04 18:35
professionalRavi Bhavnani21-Aug-04 18:35 
GeneralRe: visual studios 6.0 question Pin
Tyrus18221-Aug-04 18:44
Tyrus18221-Aug-04 18:44 
GeneralRe: visual studios 6.0 question Pin
Ravi Bhavnani21-Aug-04 18:47
professionalRavi Bhavnani21-Aug-04 18:47 
GeneralRe: visual studios 6.0 question Pin
cmk22-Aug-04 16:00
cmk22-Aug-04 16:00 
GeneralComparison of file names Pin
alex.barylski21-Aug-04 15:17
alex.barylski21-Aug-04 15:17 
GeneralRe: Comparison of file names Pin
Ravi Bhavnani21-Aug-04 18:26
professionalRavi Bhavnani21-Aug-04 18:26 
GeneralRe: Comparison of file names Pin
bikram singh22-Aug-04 7:06
bikram singh22-Aug-04 7:06 
GeneralRe: Comparison of file names Pin
alex.barylski22-Aug-04 10:51
alex.barylski22-Aug-04 10:51 
GeneralSending data through winsock Pin
Archer28221-Aug-04 13:05
Archer28221-Aug-04 13:05 
GeneralRe: Sending data through winsock Pin
Steve Mayfield21-Aug-04 19:43
Steve Mayfield21-Aug-04 19:43 
GeneralRe: Sending data through winsock Pin
Andrew Peace22-Aug-04 5:35
Andrew Peace22-Aug-04 5:35 
GeneralRe: Sending data through winsock Pin
Archer28222-Aug-04 15:10
Archer28222-Aug-04 15:10 
GeneralRe: Sending data through winsock Pin
Andrew Peace23-Aug-04 2:04
Andrew Peace23-Aug-04 2:04 
GeneralRe: Sending data through winsock Pin
Christian Graus23-Aug-04 16:37
protectorChristian Graus23-Aug-04 16:37 
GeneralRe: Sending data through winsock Pin
gamitech22-Aug-04 12:02
gamitech22-Aug-04 12:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.