diff options
| author | George Hazan <george.hazan@gmail.com> | 2012-11-02 14:11:01 +0000 | 
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2012-11-02 14:11:01 +0000 | 
| commit | 75b1ff75c42644eb36552762652e4b0c9ff071bc (patch) | |
| tree | 238f026ef373d30a395846f38c302a81961b14ac /src/modules/database | |
| parent | 2caba72d51b09368801f23dd8951d589ab4dc809 (diff) | |
final switch to the typed icolib api
git-svn-id: http://svn.miranda-ng.org/main/trunk@2152 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/database')
| -rw-r--r-- | src/modules/database/dbutils.cpp | 4 | ||||
| -rw-r--r-- | src/modules/database/profilemanager.cpp | 8 | 
2 files changed, 6 insertions, 6 deletions
| diff --git a/src/modules/database/dbutils.cpp b/src/modules/database/dbutils.cpp index 4444c8361c..174d7e5109 100644 --- a/src/modules/database/dbutils.cpp +++ b/src/modules/database/dbutils.cpp @@ -170,11 +170,11 @@ static INT_PTR DbEventGetIcon(WPARAM wParam, LPARAM lParam)  			return (INT_PTR)icon;
  	}
  	if (et && et->eventIcon)
 -		icon = (HICON)CallService(MS_SKIN2_GETICONBYHANDLE, 0, (LPARAM)et->eventIcon);
 +		icon = Skin_GetIconByHandle(et->eventIcon);
  	if ( !icon) {
  		char szName[100];
  		mir_snprintf(szName, sizeof(szName), "eventicon_%s%d", dbei->szModule, dbei->eventType);
 -		icon = (HICON)CallService(MS_SKIN2_GETICON, 0, (LPARAM)szName);
 +		icon = Skin_GetIcon(szName);
  	}
  	if ( !icon) {
 diff --git a/src/modules/database/profilemanager.cpp b/src/modules/database/profilemanager.cpp index 8d29ef9c96..1b9d3bd920 100644 --- a/src/modules/database/profilemanager.cpp +++ b/src/modules/database/profilemanager.cpp @@ -569,7 +569,7 @@ static INT_PTR CALLBACK DlgProfileManager(HWND hwndDlg, UINT msg, WPARAM wParam,  			pshn.hdr.code = PSN_INFOCHANGED;
  			pshn.hdr.hwndFrom = dat->opd[dat->currentPage].hwnd;
  			pshn.hdr.idFrom = 0;
 -			pshn.lParam = (LPARAM)0;
 +			pshn.lParam = 0;
  			SendMessage(dat->opd[dat->currentPage].hwnd, WM_NOTIFY, 0, (LPARAM)&pshn);
  			// service mode combobox
 @@ -609,7 +609,7 @@ static INT_PTR CALLBACK DlgProfileManager(HWND hwndDlg, UINT msg, WPARAM wParam,  			PSHNOTIFY pshn;
  			pshn.hdr.code = PSN_INFOCHANGED;
  			pshn.hdr.idFrom = 0;
 -			pshn.lParam = (LPARAM)0;
 +			pshn.lParam = 0;
  			for (int i=0; i < dat->pageCount; i++) {
  				pshn.hdr.hwndFrom = dat->opd[i].hwnd;
  				if (dat->opd[i].hwnd != NULL)
 @@ -652,7 +652,7 @@ static INT_PTR CALLBACK DlgProfileManager(HWND hwndDlg, UINT msg, WPARAM wParam,  						pshn.hdr.code = PSN_INFOCHANGED;
  						pshn.hdr.hwndFrom = dat->opd[dat->currentPage].hwnd;
  						pshn.hdr.idFrom = 0;
 -						pshn.lParam = (LPARAM)0;
 +						pshn.lParam = 0;
  						SendMessage(dat->opd[dat->currentPage].hwnd, WM_NOTIFY, 0, (LPARAM)&pshn);
  					}
  					ShowWindow(dat->opd[dat->currentPage].hwnd, SW_SHOW);
 @@ -693,7 +693,7 @@ static INT_PTR CALLBACK DlgProfileManager(HWND hwndDlg, UINT msg, WPARAM wParam,  			{
  				PSHNOTIFY pshn;
  				pshn.hdr.idFrom = 0;
 -				pshn.lParam = (LPARAM)0;
 +				pshn.lParam = 0;
  				if (dat->currentPage != -1) {
  					pshn.hdr.code = PSN_KILLACTIVE;
  					pshn.hdr.hwndFrom = dat->opd[dat->currentPage].hwnd;
 | 
