mirror of
https://github.com/ksherlock/rlint.git
synced 2024-06-17 01:29:30 +00:00
text edit controls - check the text reference.
This commit is contained in:
parent
a6bac0886c
commit
5c15baf82d
19
control.c
19
control.c
|
@ -1,6 +1,7 @@
|
||||||
#include <resources.h>
|
#include <resources.h>
|
||||||
#include <control.h>
|
#include <control.h>
|
||||||
#include <window.h>
|
#include <window.h>
|
||||||
|
#include <textedit.h>
|
||||||
|
|
||||||
#include "rlint.h"
|
#include "rlint.h"
|
||||||
|
|
||||||
|
@ -152,7 +153,7 @@ void check_rControlTemplate(Handle h) {
|
||||||
|
|
||||||
|
|
||||||
if (ptr->procRef == editTextControl) {
|
if (ptr->procRef == editTextControl) {
|
||||||
|
unsigned desc;
|
||||||
ref = ((TextEditTemplate *)ptr)->styleRef;
|
ref = ((TextEditTemplate *)ptr)->styleRef;
|
||||||
if ((moreFlags & 0x03) == titleIsResource)
|
if ((moreFlags & 0x03) == titleIsResource)
|
||||||
check(rStyleBlock, ref);
|
check(rStyleBlock, ref);
|
||||||
|
@ -161,6 +162,22 @@ void check_rControlTemplate(Handle h) {
|
||||||
if ((moreFlags & 0x0c) == colorTableIsResource)
|
if ((moreFlags & 0x0c) == colorTableIsResource)
|
||||||
check(rCtlColorTbl, ref);
|
check(rCtlColorTbl, ref);
|
||||||
|
|
||||||
|
|
||||||
|
ref = ((TextEditTemplate *)ptr)->textRef;
|
||||||
|
desc = ((TextEditTemplate *)ptr)->textDescriptor;
|
||||||
|
if ((desc & 0x18) == teTextIsResource) {
|
||||||
|
switch(desc & 0x07) {
|
||||||
|
case teDataIsPString: check(rPString, ref); break;
|
||||||
|
case teDataIsCString: check(rCString, ref); break;
|
||||||
|
case teDataIsC1Input: check(rC1InputString, ref); break;
|
||||||
|
case teDataIsC1Output: check(rC1OutputString, ref); break;
|
||||||
|
case teDataIsTextBox2: check(rTextForLETextBox2, ref); break;
|
||||||
|
case teDataIsTextBlock: check(rTextBlock, ref); break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user