Click here to Skip to main content
15,913,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListBox AddString() Pin
Dominik Reichl22-Aug-04 6:31
Dominik Reichl22-Aug-04 6:31 
GeneralRe: CListBox AddString() Pin
Ravi Bhavnani22-Aug-04 7:28
professionalRavi Bhavnani22-Aug-04 7:28 
QuestionHow do I refuse to resize if a window is getting too big/small? Pin
DaFrawg22-Aug-04 3:04
DaFrawg22-Aug-04 3:04 
AnswerRe: How do I refuse to resize if a window is getting too big/small? Pin
Andrew Peace22-Aug-04 5:30
Andrew Peace22-Aug-04 5:30 
AnswerRe: How do I refuse to resize if a window is getting too big/small? Pin
PJ Arends22-Aug-04 5:57
professionalPJ Arends22-Aug-04 5:57 
GeneralCreating new database Pin
Alex Che22-Aug-04 1:27
Alex Che22-Aug-04 1:27 
GeneralFor MySQL Pin
Ivan Cachicatari22-Aug-04 2:10
Ivan Cachicatari22-Aug-04 2:10 
GeneralRe: Creating new database Pin
PJ Arends22-Aug-04 11:29
professionalPJ Arends22-Aug-04 11:29 
GeneralAbout MySQL connection Pin
Ivan Cachicatari23-Aug-04 7:50
Ivan Cachicatari23-Aug-04 7:50 
GeneralxDirectx Programming in VC++ Pin
JohnExalt22-Aug-04 1:24
JohnExalt22-Aug-04 1:24 
GeneralTranslating virtual key codes into human readable format Pin
Jörgen Sigvardsson22-Aug-04 1:16
Jörgen Sigvardsson22-Aug-04 1:16 
GeneralRe: Translating virtual key codes into human readable format Pin
PJ Arends22-Aug-04 5:49
professionalPJ Arends22-Aug-04 5:49 
GeneralRe: Translating virtual key codes into human readable format Pin
Jörgen Sigvardsson22-Aug-04 6:49
Jörgen Sigvardsson22-Aug-04 6:49 
GeneralRe: Translating virtual key codes into human readable format Pin
PJ Arends22-Aug-04 11:21
professionalPJ Arends22-Aug-04 11:21 
GeneralRe: Translating virtual key codes into human readable format Pin
Jörgen Sigvardsson22-Aug-04 11:30
Jörgen Sigvardsson22-Aug-04 11:30 
GeneralRe: Translating virtual key codes into human readable format Pin
PJ Arends22-Aug-04 12:13
professionalPJ Arends22-Aug-04 12:13 
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 

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.