--- /dev/null
+#ifndef _APP_RESOURCE_ID_H_
+#define _APP_RESOURCE_ID_H_
+
+extern const wchar_t* IDF_MAINFORM;
+extern const wchar_t* IDC_ORIENTATIONPANEL;
+extern const wchar_t* IDC_BUTTON_ORIENTATION;
+#endif // _APP_RESOURCE_ID_H_
--- /dev/null
+#include "AppResourceId.h"
+
+const wchar_t* IDF_MAINFORM = L"IDF_MAINFORM";
+const wchar_t* IDC_ORIENTATIONPANEL = L"IDC_ORIENTATIONPANEL";
+const wchar_t* IDC_BUTTON_ORIENTATION = L"IDC_BUTTON_ORIENTATION";
+
#include <FApp.h>
#include <FBase.h>
+#include "AppResourceId.h"
#include "ButtonPanel.h"
#include "ImagePanel.h"
#include "MainForm.h"
result
MainForm::Initialize(int panelId)
{
- result r = Form::Construct(L"IDF_MAINFORM");
+ result r = Form::Construct(IDF_MAINFORM);
if (panelId >= 0 && panelId <= 2)
{
// Orientation panel was created with UI Builder,
// so only its button events must be defined here
- __pPanel[1] = static_cast<Panel *>(GetControl(L"IDC_ORIENTATIONPANEL"));
+ __pPanel[1] = static_cast<Panel *>(GetControl(IDC_ORIENTATIONPANEL));
if (__pPanel[1] != null)
{
- __pButtonOrientation = static_cast<Button *>(GetControl(L"IDC_BUTTON_ORIENTATION", true));
+ __pButtonOrientation = static_cast<Button *>(GetControl(IDC_BUTTON_ORIENTATION, true));
if (__pButtonOrientation != null)
{