forked from Mirrors/wine-wine
comctl32: Remove unused variables.
parent
6657cfe70d
commit
161d3322d6
|
@ -967,16 +967,14 @@ static HFONT SYSLINK_SetFont (SYSLINK_INFO *infoPtr, HFONT hFont, BOOL bRedraw)
|
||||||
*/
|
*/
|
||||||
static LRESULT SYSLINK_SetText (SYSLINK_INFO *infoPtr, LPCWSTR Text)
|
static LRESULT SYSLINK_SetText (SYSLINK_INFO *infoPtr, LPCWSTR Text)
|
||||||
{
|
{
|
||||||
int textlen;
|
|
||||||
|
|
||||||
/* clear the document */
|
/* clear the document */
|
||||||
SYSLINK_ClearDoc(infoPtr);
|
SYSLINK_ClearDoc(infoPtr);
|
||||||
|
|
||||||
if(Text == NULL || (textlen = lstrlenW(Text)) == 0)
|
if(Text == NULL || *Text == 0)
|
||||||
{
|
{
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* let's parse the string and create a document */
|
/* let's parse the string and create a document */
|
||||||
if(SYSLINK_ParseText(infoPtr, Text) > 0)
|
if(SYSLINK_ParseText(infoPtr, Text) > 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -5778,7 +5778,6 @@ TOOLBAR_LButtonUp (HWND hwnd, WPARAM wParam, LPARAM lParam)
|
||||||
POINT pt;
|
POINT pt;
|
||||||
INT nHit;
|
INT nHit;
|
||||||
INT nOldIndex = -1;
|
INT nOldIndex = -1;
|
||||||
BOOL bSendMessage = TRUE;
|
|
||||||
NMHDR hdr;
|
NMHDR hdr;
|
||||||
NMMOUSE nmmouse;
|
NMMOUSE nmmouse;
|
||||||
NMTOOLBARA nmtb;
|
NMTOOLBARA nmtb;
|
||||||
|
@ -5865,8 +5864,6 @@ TOOLBAR_LButtonUp (HWND hwnd, WPARAM wParam, LPARAM lParam)
|
||||||
if (btnPtr->fsStyle & BTNS_GROUP) {
|
if (btnPtr->fsStyle & BTNS_GROUP) {
|
||||||
nOldIndex = TOOLBAR_GetCheckedGroupButtonIndex (infoPtr,
|
nOldIndex = TOOLBAR_GetCheckedGroupButtonIndex (infoPtr,
|
||||||
nHit);
|
nHit);
|
||||||
if (nOldIndex == nHit)
|
|
||||||
bSendMessage = FALSE;
|
|
||||||
if ((nOldIndex != nHit) &&
|
if ((nOldIndex != nHit) &&
|
||||||
(nOldIndex != -1))
|
(nOldIndex != -1))
|
||||||
infoPtr->buttons[nOldIndex].fsState &= ~TBSTATE_CHECKED;
|
infoPtr->buttons[nOldIndex].fsState &= ~TBSTATE_CHECKED;
|
||||||
|
|
Loading…
Reference in New Issue