mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 00:54:40 +00:00
Cosmetics...
svn path=/trunk/; revision=4923
This commit is contained in:
parent
bf7fd7c66e
commit
c37620bed9
4 changed files with 13 additions and 13 deletions
|
@ -409,19 +409,19 @@ BOOL DfGenericMessage(DFWINDOW, char *, char *, int,
|
||||||
char *, char *, int, int, int);
|
char *, char *, int, int, int);
|
||||||
#define DfTestErrorMessage(msg) \
|
#define DfTestErrorMessage(msg) \
|
||||||
DfGenericMessage(NULL, "Error", msg, 2, DfErrorBoxProc, \
|
DfGenericMessage(NULL, "Error", msg, 2, DfErrorBoxProc, \
|
||||||
Ok, Cancel, DF_ID_OK, DF_ID_CANCEL, TRUE)
|
DfOk, DfCancel, DF_ID_OK, DF_ID_CANCEL, TRUE)
|
||||||
#define DfErrorMessage(msg) \
|
#define DfErrorMessage(msg) \
|
||||||
DfGenericMessage(NULL, "Error", msg, 1, DfErrorBoxProc, \
|
DfGenericMessage(NULL, "Error", msg, 1, DfErrorBoxProc, \
|
||||||
Ok, NULL, DF_ID_OK, 0, TRUE)
|
DfOk, NULL, DF_ID_OK, 0, TRUE)
|
||||||
#define DfMessageBox(ttl, msg) \
|
#define DfMessageBox(ttl, msg) \
|
||||||
DfGenericMessage(NULL, ttl, msg, 1, DfMessageBoxProc, \
|
DfGenericMessage(NULL, ttl, msg, 1, DfMessageBoxProc, \
|
||||||
Ok, NULL, DF_ID_OK, 0, TRUE)
|
DfOk, NULL, DF_ID_OK, 0, TRUE)
|
||||||
#define DfYesNoBox(msg) \
|
#define DfYesNoBox(msg) \
|
||||||
DfGenericMessage(NULL, NULL, msg, 2, DfYesNoBoxProc, \
|
DfGenericMessage(NULL, NULL, msg, 2, DfYesNoBoxProc, \
|
||||||
Yes, No, DF_ID_OK, DF_ID_CANCEL, TRUE)
|
DfYes, DfNo, DF_ID_OK, DF_ID_CANCEL, TRUE)
|
||||||
#define DfCancelBox(wnd, msg) \
|
#define DfCancelBox(wnd, msg) \
|
||||||
DfGenericMessage(wnd, "Wait...", msg, 1, DfCancelBoxProc, \
|
DfGenericMessage(wnd, "Wait...", msg, 1, DfCancelBoxProc, \
|
||||||
Cancel, NULL, DF_ID_CANCEL, 0, FALSE)
|
DfCancel, NULL, DF_ID_CANCEL, 0, FALSE)
|
||||||
void DfCloseCancelBox(void);
|
void DfCloseCancelBox(void);
|
||||||
DFWINDOW DfMomentaryMessage(char *);
|
DFWINDOW DfMomentaryMessage(char *);
|
||||||
int DfMsgHeight(char *);
|
int DfMsgHeight(char *);
|
||||||
|
|
|
@ -47,9 +47,9 @@ typedef struct {
|
||||||
|
|
||||||
#define DF_ENDDB {{NULL}} }};
|
#define DF_ENDDB {{NULL}} }};
|
||||||
|
|
||||||
#define Cancel " Cancel "
|
#define DfCancel " Cancel "
|
||||||
#define Ok " OK "
|
#define DfOk " OK "
|
||||||
#define Yes " Yes "
|
#define DfYes " Yes "
|
||||||
#define No " No "
|
#define DfNo " No "
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -356,11 +356,11 @@ static BOOL SelectionInWindow(DFWINDOW wnd, int sel)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void WriteSelection(DFWINDOW wnd, int sel,
|
static void WriteSelection(DFWINDOW wnd, int sel,
|
||||||
int _reverse, DFRECT *rc)
|
int reverse, DFRECT *rc)
|
||||||
{
|
{
|
||||||
if (DfIsVisible(wnd))
|
if (DfIsVisible(wnd))
|
||||||
if (SelectionInWindow(wnd, sel))
|
if (SelectionInWindow(wnd, sel))
|
||||||
DfWriteTextLine(wnd, rc, sel, _reverse);
|
DfWriteTextLine(wnd, rc, sel, reverse);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef INCLUDE_EXTENDEDSELECTIONS
|
#ifdef INCLUDE_EXTENDEDSELECTIONS
|
||||||
|
|
|
@ -617,7 +617,7 @@ static char *GetTextLine(DFWINDOW wnd, int selection)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------- write a line of text to a textbox window ------- */
|
/* ------- write a line of text to a textbox window ------- */
|
||||||
void DfWriteTextLine(DFWINDOW wnd, DFRECT *rcc, int y, BOOL _reverse)
|
void DfWriteTextLine(DFWINDOW wnd, DFRECT *rcc, int y, BOOL reverse)
|
||||||
{
|
{
|
||||||
int len = 0;
|
int len = 0;
|
||||||
int dif = 0;
|
int dif = 0;
|
||||||
|
@ -783,7 +783,7 @@ void DfWriteTextLine(DFWINDOW wnd, DFRECT *rcc, int y, BOOL _reverse)
|
||||||
line[len] = '\0';
|
line[len] = '\0';
|
||||||
dif = 0;
|
dif = 0;
|
||||||
/* ------ establish the line's main DfColor ----- */
|
/* ------ establish the line's main DfColor ----- */
|
||||||
if (_reverse) {
|
if (reverse) {
|
||||||
char *cp = line;
|
char *cp = line;
|
||||||
DfSetReverseColor(wnd);
|
DfSetReverseColor(wnd);
|
||||||
while ((cp = strchr(cp, DF_CHANGECOLOR)) != NULL) {
|
while ((cp = strchr(cp, DF_CHANGECOLOR)) != NULL) {
|
||||||
|
|
Loading…
Reference in a new issue