www.pudn.com > ExpBar_src.zip   To Read all the content


[file head]:
/*
* file : colxpbar.c
* language : ANSI/ISO C
* plattform : Win32 (Windows 98/Me/NT/2000/XP)
* description : implements the xp-style explorer bar and helper functions
*
* revision history:
* =================
*
* date: author: description:
* --------------------------------------------------------------------------
* 02/17/2004 Ingo A. Kubbilun first published version 1.0
*/

#include <explorerbar.h>
#include <internal.h>
#include <mmsystem.h>

#define CHS_ANIMATEPANE (CHS_ANIMATEFADE|CHS_ANIMATEROLL)

static void APIENTRY ReCalcLayout ( HWND hwnd );
static BOOL APIENTRY AddPane ( HWND hwnd, int iPaneIdx, PPANEDEF pPD );
static BOOL APIENTRY DelPane ( HWND hwnd, PCBPANE pCBP );
static void APIENTRY FreePaneCtrls ( PPANECTRL pPC );
static void APIPRIVATE ScanPaneControls ( HWND hwndDlg, PCBPANE pCBP );
static VOID APIENTRY SetPaneFont ( PCBPANE pCBP, HFONT hFontNormal, HFONT hFontSpecial );
static V
... ...

[file tail]:
... ...
(SendMessage(hwndChild,CB_GETCOMBOBOXINFO,0,(LPARAM)&amt;cbi))
{
if ((hwndFocus==cbi.hwndCombo) ||
(hwndFocus==cbi.hwndItem) ||
(hwndFocus==cbi.hwndList))
{
iFocusIdx = i;
break;
}
}
}
}
}
}
}
}

if ((iFocusIdx==-1) || (pCL[iFocusIdx].bPaneHeader))
{
free(pCL);
return FALSE;
}

MakeControlVisible(pCBS,pCL[iFocusIdx].hwndCtrl);
free(pCL);
return FALSE;
}
}
return FALSE;
}

static void APIENTRY ForceStopScrolling ( PCBSTRUCT pCBS )
{
if (pCBS->bScrollVisible)
{
if ((pCBS->bScrolling) || (GetCapture()==pCBS->hwndBar))
{
pCBS->bScrolling = FALSE;
ReleaseCapture();
}
}
}