22 Commits
Author SHA1 Message Date
mmacierzanka be95db47c0 🏁 Final commit to this repository! 2021-06-22 02:12:27 +02:00
mmacierzanka 31fab8ccf1 Revert "1.3.0 EN"
This reverts commit 200fb5c4e1.
2021-06-22 02:08:39 +02:00
mmacierzanka 200fb5c4e1 1.3.0 EN 2021-06-22 01:46:50 +02:00
mmacierzanka 2d30c7a3bf fixed index overflow 2021-06-07 20:53:30 +02:00
mmacierzanka d65b1fa3ec More keyboard shortcuts 2021-06-07 20:18:20 +02:00
mmacierzanka e4b43dbf46 More keyboard shortcuts 2021-06-07 20:15:24 +02:00
mmacierzanka ce81094a62 1.3.0 2021-06-07 20:07:55 +02:00
mmacierzanka 04b51ee5ea improvements 2021-06-07 19:34:02 +02:00
mmacierzanka 40b962250f improved search mechanism 2021-06-07 18:54:52 +02:00
mmacierzanka d633806464 Fixed LBN_SELCHANGE firing when clicking on an empty space 2021-06-07 16:07:42 +02:00
mmacierzanka bbe91b949b more secure jumping 2021-06-07 00:13:38 +02:00
mmacierzanka 981b995308 working jumping 2021-06-06 23:35:07 +02:00
mmacierzanka 40119b2e4e jump to preparing 2021-06-06 22:27:20 +02:00
mmacierzanka caaec15f31 fixed keyboard shortcuts not firing 2021-06-06 21:03:12 +02:00
mmacierzanka 873c785df9 Project configuring (post FINAL milestone) 2021-06-05 01:15:38 +02:00
mmacierzanka d372671f1b 👑👑👑 FINAL COMMIT (showcase milestone) 2021-06-04 23:13:05 +02:00
mmacierzanka f80714542d 1.2.0 - FINAL SHOWCASE VERSION 2021-06-04 16:38:00 +02:00
mmacierzanka d1fd4a6eea fixed manifest file (mistake) 2021-06-04 16:13:59 +02:00
mmacierzanka a20fad4635 modified manifest 2021-06-04 16:12:42 +02:00
mmacierzanka aefd8e6434 modified "about" screen 2021-06-04 15:49:38 +02:00
mmacierzanka 7da19e19e0 changed menu items 2021-06-04 15:40:05 +02:00
mmacierzanka d5b22fc6b2 1.1.1 - more code safety + bug fixes 2021-06-04 14:31:12 +02:00
7 changed files with 135 additions and 26 deletions

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@
name="CompanyName.ProductName.YourApplication" name="CompanyName.ProductName.YourApplication"
type="win32" type="win32"
/> />
<description>PAiPlayer - A school project that helps me learn C++</description> <description>ClickPlay</description>
<dependency> <dependency>
<dependentAssembly> <dependentAssembly>
<assemblyIdentity <assemblyIdentity
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -22,7 +22,7 @@
<VCProjectVersion>16.0</VCProjectVersion> <VCProjectVersion>16.0</VCProjectVersion>
<Keyword>Win32Proj</Keyword> <Keyword>Win32Proj</Keyword>
<ProjectGuid>{c734fda7-262e-4202-8f4e-5e3031cb9935}</ProjectGuid> <ProjectGuid>{c734fda7-262e-4202-8f4e-5e3031cb9935}</ProjectGuid>
<RootNamespace>EasyAudioPlayer</RootNamespace> <RootNamespace>ClickPlay</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
<ProjectName>ClickPlay</ProjectName> <ProjectName>ClickPlay</ProjectName>
</PropertyGroup> </PropertyGroup>
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

+123 -21
View File
@@ -43,7 +43,8 @@ wstring ext[EXT_LENGTH] = { L"mp3", L"wav" };
//PATH VARS //PATH VARS
vector<WIN32_FIND_DATA> files; vector<WIN32_FIND_DATA> files;
wstring path; wstring path;
double selected = -1; wstring currentSearchPhrase;
__int64 selected = -1;
//STATE VARS //STATE VARS
/* /*
@@ -54,7 +55,7 @@ double selected = -1;
*/ */
int currentState = -1; int currentState = -1;
BOOL isOnClickPlayEnabled = TRUE; BOOL isOnClickPlayEnabled = TRUE;
BOOL isAutoPlayEnabled = FALSE; BOOL isAutoPlayEnabled = TRUE;
BOOL isLoopEnabled = FALSE; BOOL isLoopEnabled = FALSE;
BOOL isQueued = FALSE; BOOL isQueued = FALSE;
BOOL showExtensions = FALSE; BOOL showExtensions = FALSE;
@@ -73,6 +74,7 @@ HMENU menuBar;
//HOOKS //HOOKS
LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
LRESULT CALLBACK JumpToProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam); INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
bool alphabeticSort(WIN32_FIND_DATA a, WIN32_FIND_DATA b); bool alphabeticSort(WIN32_FIND_DATA a, WIN32_FIND_DATA b);
@@ -109,7 +111,7 @@ int WINAPI WinMain(HINSTANCE currentInst, HINSTANCE previousInst, LPSTR lpCmdLin
//INITIALIZE MESSAGE LOOP //INITIALIZE MESSAGE LOOP
while (GetMessage(&msg, NULL, 0, 0)) { while (GetMessage(&msg, NULL, 0, 0)) {
if (!TranslateAccelerator(msg.hwnd, shortcuts, &msg)) { if (!TranslateAccelerator(mainWindow, shortcuts, &msg)) {
TranslateMessage(&msg); TranslateMessage(&msg);
DispatchMessage(&msg); DispatchMessage(&msg);
} }
@@ -180,8 +182,8 @@ int LoadSelection(int index) {
LPCWSTR fullCommand = fullCommandS.c_str(); LPCWSTR fullCommand = fullCommandS.c_str();
if (mciSendString(fullCommand, NULL, 0, mainWindow) != 0) { if (mciSendString(fullCommand, NULL, 0, mainWindow) != 0) {
MessageBox(mainWindow, L"Nieznany b³¹d uniemo¿liwia odtworzenie tego pliku. SprawdŸ czy plik nie jest uszkodzony.", L"B³¹d wczytywania", MB_ICONERROR);
UnloadSelection(); UnloadSelection();
MessageBox(mainWindow, L"Nieznany b³¹d uniemo¿liwia odtworzenie tego pliku. SprawdŸ czy plik nie jest uszkodzony.", L"B³¹d wczytywania", MB_ICONERROR);
return -4; return -4;
} }
selected = index; selected = index;
@@ -291,16 +293,25 @@ int FolderBrowseDialog(HWND window) {
} }
//SEARCH DIRECTORY //SEARCH DIRECTORY
void SearchDir(wstring phrase) { /*ERROR CODES
* -1 - no files found
* -2 - LoadDir error
* -3 - empty input
*/
int SearchDir(wstring phrase) {
//PERFORM CHECKING //PERFORM CHECKING
if (path.empty()) { if (path.empty()) {
return; return -2;
}
if (phrase == currentSearchPhrase) {
return 0;
} }
//RELOAD DIR //RELOAD DIR
LoadDir(path); if (LoadDir(path) != 0) {
//PREPARE return -2;
}
if (phrase.empty()) { if (phrase.empty()) {
return; return -3;
} }
vector<WIN32_FIND_DATA> results; vector<WIN32_FIND_DATA> results;
//GET FILES //GET FILES
@@ -311,17 +322,20 @@ void SearchDir(wstring phrase) {
} }
if (results.empty()) { if (results.empty()) {
MessageBox(mainWindow, L"Nie znaleziono plików zawieraj¹cych wpisan¹ frazê.", L"Brak plików", MB_ICONEXCLAMATION); MessageBox(mainWindow, L"Nie znaleziono plików zawieraj¹cych wpisan¹ frazê.", L"Brak plików", MB_ICONEXCLAMATION);
return; currentSearchPhrase.clear();
return -1;
} }
std::sort(results.begin(), results.end(), alphabeticSort); std::sort(results.begin(), results.end(), alphabeticSort);
files = results; files = results;
currentSearchPhrase = phrase;
//ADD FILTERED CONTENT //ADD FILTERED CONTENT
GenerateList(files); GenerateList(files);
return 0;
} }
//GET SEARCH PHRASE FROM searchBox //GET SEARCH PHRASE FROM searchBox
wstring GetSearchPhrase() { wstring GetSearchPhrase() {
double searchLength = SendMessage(searchBox, WM_GETTEXTLENGTH, 0, NULL); __int64 searchLength = SendMessage(searchBox, WM_GETTEXTLENGTH, 0, NULL);
TCHAR* searchPhrase = new TCHAR[searchLength + 1]; TCHAR* searchPhrase = new TCHAR[searchLength + 1];
SendMessage(searchBox, WM_GETTEXT, searchLength + 1, (LPARAM)searchPhrase); SendMessage(searchBox, WM_GETTEXT, searchLength + 1, (LPARAM)searchPhrase);
searchPhrase[(int)searchLength] = _T('\0'); searchPhrase[(int)searchLength] = _T('\0');
@@ -359,17 +373,26 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {
break; break;
case IDC_LIST: case IDC_LIST:
if (windowEvent == LBN_SELCHANGE) { if (windowEvent == LBN_SELCHANGE) {
if (currentState == 1 || currentState == 2) { currentState = 1; isQueued = TRUE; } if (selected != SendMessage(filesListCtrl, LB_GETCURSEL, 0, 0)) {
if (LoadSelection(GetIndex()) == 0) { if (currentState == 1 || currentState == 2) { currentState = 1; isQueued = TRUE; }
if (isOnClickPlayEnabled == TRUE) { if (LoadSelection(GetIndex()) == 0) {
SendMessage(mainWindow, STATE_CHANGE, 1, NULL); if (isOnClickPlayEnabled == TRUE) {
SendMessage(mainWindow, STATE_CHANGE, 1, NULL);
}
}
else {
SendMessage(mainWindow, STATE_CHANGE, 0, 0);
} }
} }
} }
break; break;
case IDC_SEARCHBTN: case IDC_SEARCHBTN:
SearchDir(GetSearchPhrase()); if (SearchDir(GetSearchPhrase()) == -2) {
SendMessage(mainWindow, STATE_CHANGE, 0, 0); SendMessage(mainWindow, STATE_CHANGE, -1, 0);
}
else {
SendMessage(mainWindow, STATE_CHANGE, 0, 0);
}
break; break;
case IDC_PLAYBTN: case IDC_PLAYBTN:
switch (currentState) { switch (currentState) {
@@ -377,6 +400,9 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {
if (LoadSelection(GetIndex()) == 0) { if (LoadSelection(GetIndex()) == 0) {
SendMessage(mainWindow, STATE_CHANGE, 1, NULL); SendMessage(mainWindow, STATE_CHANGE, 1, NULL);
} }
else {
SendMessage(mainWindow, STATE_CHANGE, 0, 0);
}
break; break;
case 1: case 1:
SendMessage(mainWindow, STATE_CHANGE, 2, NULL); SendMessage(mainWindow, STATE_CHANGE, 2, NULL);
@@ -390,6 +416,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {
isQueued = FALSE; isQueued = FALSE;
UnloadSelection(); UnloadSelection();
SendMessage(mainWindow, STATE_CHANGE, 0, NULL); SendMessage(mainWindow, STATE_CHANGE, 0, NULL);
SendMessage(filesListCtrl, LB_SETCURSEL, -1, 0);
break; break;
case IDM_EXIT: case IDM_EXIT:
SendMessage(mainWindow, WM_CLOSE, NULL, NULL); SendMessage(mainWindow, WM_CLOSE, NULL, NULL);
@@ -402,7 +429,9 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {
SendMessage(mainWindow, STATE_CHANGE, -1, 0); SendMessage(mainWindow, STATE_CHANGE, -1, 0);
} }
if (SendMessage(searchBox, WM_GETTEXTLENGTH, 0, 0) > 0) { if (SendMessage(searchBox, WM_GETTEXTLENGTH, 0, 0) > 0) {
SearchDir(GetSearchPhrase()); if (SearchDir(GetSearchPhrase()) == -2) {
SendMessage(mainWindow, STATE_CHANGE, -1, 0);
}
} }
break; break;
case ID_OPCJE_ONCLICK: case ID_OPCJE_ONCLICK:
@@ -426,6 +455,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {
} }
UnloadSelection(); UnloadSelection();
SendMessage(mainWindow, STATE_CHANGE, 0, 0); SendMessage(mainWindow, STATE_CHANGE, 0, 0);
SendMessage(filesListCtrl, LB_SETCURSEL, -1, 0);
break; break;
case ID_OPCJE_SHOWEXT: case ID_OPCJE_SHOWEXT:
if (showExtensions) { if (showExtensions) {
@@ -438,12 +468,16 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {
} }
if (!path.empty() && !files.empty()) { if (!path.empty() && !files.empty()) {
GenerateList(files); GenerateList(files);
if (selected != -1) {
SendMessage(filesListCtrl, LB_SETCURSEL, selected, 0);
}
} }
break; break;
case ID_PLIK_CLOSEDIR: case ID_PLIK_CLOSEDIR:
SendMessage(mainWindow, STATE_CHANGE, -1, NULL); SendMessage(mainWindow, STATE_CHANGE, -1, NULL);
break; break;
case ID_AKCJE_SRCLEAR: case ID_AKCJE_SRCLEAR:
currentSearchPhrase.clear();
SendMessage(searchBox, WM_SETTEXT, (WPARAM)L"", 0); SendMessage(searchBox, WM_SETTEXT, (WPARAM)L"", 0);
SendMessage(mainWindow, STATE_CHANGE, 0, 0); SendMessage(mainWindow, STATE_CHANGE, 0, 0);
if (LoadDir(path) != 0) { if (LoadDir(path) != 0) {
@@ -458,9 +492,14 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {
srand(time(NULL)); srand(time(NULL));
//LOAD AND PLAY //LOAD AND PLAY
randIndex = rand() % files.size(); randIndex = rand() % files.size();
LoadSelection(randIndex); if (randIndex == selected && randIndex + 1 < files.size()) { randIndex += 1; }
SendMessage(filesListCtrl, LB_SETCURSEL, randIndex, 0); if (LoadSelection(randIndex) == 0) {
SendMessage(mainWindow, STATE_CHANGE, 1, 0); SendMessage(filesListCtrl, LB_SETCURSEL, randIndex, 0);
SendMessage(mainWindow, STATE_CHANGE, 1, 0);
}
else {
SendMessage(mainWindow, STATE_CHANGE, 0, 0);
}
break; break;
case ID_OPCJE_AUTOPLAY: case ID_OPCJE_AUTOPLAY:
if (isAutoPlayEnabled) { if (isAutoPlayEnabled) {
@@ -473,6 +512,10 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {
} }
UnloadSelection(); UnloadSelection();
SendMessage(mainWindow, STATE_CHANGE, 0, 0); SendMessage(mainWindow, STATE_CHANGE, 0, 0);
SendMessage(filesListCtrl, LB_SETCURSEL, -1, 0);
break;
case ID_AKCJE_JUMP:
DialogBox(globalInstance, MAKEINTRESOURCE(IDD_JUMPTODIALOG), mainWindow, JumpToProc);
break; break;
} }
break; break;
@@ -501,6 +544,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {
if (selected != -1) { if (selected != -1) {
UnloadSelection(); UnloadSelection();
SendMessage(mainWindow, STATE_CHANGE, 0, NULL); SendMessage(mainWindow, STATE_CHANGE, 0, NULL);
SendMessage(filesListCtrl, LB_SETCURSEL, -1, 0);
} }
} }
} }
@@ -508,6 +552,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {
if (selected != -1) { if (selected != -1) {
UnloadSelection(); UnloadSelection();
SendMessage(mainWindow, STATE_CHANGE, 0, NULL); SendMessage(mainWindow, STATE_CHANGE, 0, NULL);
SendMessage(filesListCtrl, LB_SETCURSEL, -1, 0);
} }
} }
} }
@@ -529,6 +574,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {
EnableMenuItem(menuBar, ID_PLIK_CLOSEDIR, MF_DISABLED); EnableMenuItem(menuBar, ID_PLIK_CLOSEDIR, MF_DISABLED);
EnableMenuItem(menuBar, ID_AKCJE_RANDOM, MF_DISABLED); EnableMenuItem(menuBar, ID_AKCJE_RANDOM, MF_DISABLED);
EnableMenuItem(menuBar, ID_AKCJE_SRCLEAR, MF_DISABLED); EnableMenuItem(menuBar, ID_AKCJE_SRCLEAR, MF_DISABLED);
EnableMenuItem(menuBar, ID_AKCJE_JUMP, MF_DISABLED);
SetWindowText(dirLabel, NO_DIR_LOADED_LABEL); SetWindowText(dirLabel, NO_DIR_LOADED_LABEL);
SetWindowText(npLabel, NOT_PLAYING_LABEL); SetWindowText(npLabel, NOT_PLAYING_LABEL);
SetWindowText(playButton, PLAY_LABEL); SetWindowText(playButton, PLAY_LABEL);
@@ -543,6 +589,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {
EnableMenuItem(menuBar, ID_PLIK_CLOSEDIR, MF_ENABLED); EnableMenuItem(menuBar, ID_PLIK_CLOSEDIR, MF_ENABLED);
EnableMenuItem(menuBar, ID_AKCJE_RANDOM, MF_ENABLED); EnableMenuItem(menuBar, ID_AKCJE_RANDOM, MF_ENABLED);
EnableMenuItem(menuBar, ID_AKCJE_SRCLEAR, MF_ENABLED); EnableMenuItem(menuBar, ID_AKCJE_SRCLEAR, MF_ENABLED);
EnableMenuItem(menuBar, ID_AKCJE_JUMP, MF_DISABLED);
SetWindowText(npLabel, NOT_PLAYING_LABEL); SetWindowText(npLabel, NOT_PLAYING_LABEL);
SetWindowText(playButton, PLAY_LABEL); SetWindowText(playButton, PLAY_LABEL);
break; break;
@@ -580,6 +627,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {
EnableMenuItem(menuBar, ID_PLIK_CLOSEDIR, MF_ENABLED); EnableMenuItem(menuBar, ID_PLIK_CLOSEDIR, MF_ENABLED);
EnableMenuItem(menuBar, ID_AKCJE_RANDOM, MF_ENABLED); EnableMenuItem(menuBar, ID_AKCJE_RANDOM, MF_ENABLED);
EnableMenuItem(menuBar, ID_AKCJE_SRCLEAR, MF_ENABLED); EnableMenuItem(menuBar, ID_AKCJE_SRCLEAR, MF_ENABLED);
EnableMenuItem(menuBar, ID_AKCJE_JUMP, MF_ENABLED);
SetWindowText(npLabel, files[selected].cFileName); SetWindowText(npLabel, files[selected].cFileName);
SetWindowText(playButton, PAUSE_LABEL); SetWindowText(playButton, PAUSE_LABEL);
break; break;
@@ -602,6 +650,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {
EnableMenuItem(menuBar, ID_PLIK_CLOSEDIR, MF_ENABLED); EnableMenuItem(menuBar, ID_PLIK_CLOSEDIR, MF_ENABLED);
EnableMenuItem(menuBar, ID_AKCJE_RANDOM, MF_ENABLED); EnableMenuItem(menuBar, ID_AKCJE_RANDOM, MF_ENABLED);
EnableMenuItem(menuBar, ID_AKCJE_SRCLEAR, MF_ENABLED); EnableMenuItem(menuBar, ID_AKCJE_SRCLEAR, MF_ENABLED);
EnableMenuItem(menuBar, ID_AKCJE_JUMP, MF_ENABLED);
SetWindowText(npLabel, pauseString); SetWindowText(npLabel, pauseString);
SetWindowText(playButton, L"Wznów"); SetWindowText(playButton, L"Wznów");
break; break;
@@ -614,6 +663,59 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {
return NULL; return NULL;
} }
//JUMP TO DIALOG LOOP
INT_PTR CALLBACK JumpToProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {
UNREFERENCED_PARAMETER(lParam);
switch (msg) {
case WM_INITDIALOG:
SetDlgItemText(hwnd, IDC_TSMIN, L"00");
SetDlgItemText(hwnd, IDC_TSSEC, L"00");
return (INT_PTR)TRUE;
case WM_COMMAND:
if (LOWORD(wParam) == IDOK) {
TCHAR* minB = new TCHAR[32];
TCHAR* secB = new TCHAR[32];
GetDlgItemText(hwnd, IDC_TSMIN, minB, 30);
GetDlgItemText(hwnd, IDC_TSSEC, secB, 30);
int min = 0;
int sec = 0;
try {
min = std::stoi(minB);
sec = std::stoi(secB);
if (!(min >= 0 && min <= 999 && sec >= 0 && sec <= 59)) {
MessageBox(mainWindow, L"Podane wartoœci s¹ niepoprawne", L"Niepoprawne wartoœci", MB_ICONEXCLAMATION);
EndDialog(hwnd, LOWORD(wParam));
return (INT_PTR)TRUE;
}
}
catch (...) {
MessageBox(mainWindow, L"Podane wartoœci s¹ niepoprawne", L"Niepoprawne wartoœci", MB_ICONEXCLAMATION);
EndDialog(hwnd, LOWORD(wParam));
return (INT_PTR)TRUE;
}
int timestamp = (((min * 60) + sec) * 1000);
isQueued = TRUE;
wstring mciCmd = L"play mp3 from " + std::to_wstring(timestamp);
mciSendString(mciCmd.c_str(), NULL, 0, mainWindow);
SendMessage(mainWindow, STATE_CHANGE, 1, 0);
EndDialog(hwnd, LOWORD(wParam));
return (INT_PTR)TRUE;
}
else if (LOWORD(wParam) == IDCANCEL) {
EndDialog(hwnd, LOWORD(wParam));
return (INT_PTR)TRUE;
}
}
return (INT_PTR)FALSE;
}
//ABOUT DIALOG LOOP //ABOUT DIALOG LOOP
INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) {
UNREFERENCED_PARAMETER(lParam); UNREFERENCED_PARAMETER(lParam);
+10 -3
View File
@@ -11,7 +11,13 @@
#define IDI_SMALL 108 #define IDI_SMALL 108
#define IDC_CLICKPLAY 109 #define IDC_CLICKPLAY 109
#define IDR_MAINFRAME 128 #define IDR_MAINFRAME 128
#define IDD_JUMPTODIALOG 130
#define IDC_MENU 200 #define IDC_MENU 200
#define IDC_SEARCHBTN 205
#define IDC_PLAYBTN 207
#define IDC_STOPBTN 208
#define IDC_TSSEC 1000
#define IDC_TSMIN 1001
#define ID_REFRESH 32775 #define ID_REFRESH 32775
#define ID_OPCJE_ONCLICK 32776 #define ID_OPCJE_ONCLICK 32776
#define ID_OPCJE_LOOP 32777 #define ID_OPCJE_LOOP 32777
@@ -21,6 +27,7 @@
#define ID_AKCJE_RANDOM 32781 #define ID_AKCJE_RANDOM 32781
#define ID_OPCJE_SHOWEXT 32782 #define ID_OPCJE_SHOWEXT 32782
#define ID_OPCJE_AUTOPLAY 32783 #define ID_OPCJE_AUTOPLAY 32783
#define ID_AKCJE_JUMP 32784
#define IDC_STATIC -1 #define IDC_STATIC -1
// Next default values for new objects // Next default values for new objects
@@ -28,9 +35,9 @@
#ifdef APSTUDIO_INVOKED #ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS #ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NO_MFC 1 #define _APS_NO_MFC 1
#define _APS_NEXT_RESOURCE_VALUE 130 #define _APS_NEXT_RESOURCE_VALUE 131
#define _APS_NEXT_COMMAND_VALUE 32784 #define _APS_NEXT_COMMAND_VALUE 32785
#define _APS_NEXT_CONTROL_VALUE 1000 #define _APS_NEXT_CONTROL_VALUE 1002
#define _APS_NEXT_SYMED_VALUE 110 #define _APS_NEXT_SYMED_VALUE 110
#endif #endif
#endif #endif