mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
CppKore: add getter for child control count
This commit is contained in:
parent
4c99efa889
commit
d5db4674a4
5
r5dev/thirdparty/cppnet/cppkore/Control.cpp
vendored
5
r5dev/thirdparty/cppnet/cppkore/Control.cpp
vendored
@ -725,6 +725,11 @@ namespace Forms
|
||||
return this->_RTTI;
|
||||
}
|
||||
|
||||
uint32_t Control::GetControlCount()
|
||||
{
|
||||
return this->_Controls->Count();
|
||||
}
|
||||
|
||||
Control* Control::FindForm()
|
||||
{
|
||||
auto Cur = this;
|
||||
|
2
r5dev/thirdparty/cppnet/cppkore/Control.h
vendored
2
r5dev/thirdparty/cppnet/cppkore/Control.h
vendored
@ -209,6 +209,8 @@ namespace Forms
|
||||
HWND GetHandle();
|
||||
// Returns the type of this control
|
||||
ControlTypes GetType();
|
||||
// Returns the number of child controls
|
||||
uint32_t GetControlCount();
|
||||
|
||||
// Retrieves the form that the control is on.
|
||||
Control* FindForm();
|
||||
|
Loading…
x
Reference in New Issue
Block a user