www.pudn.com > gate.rar > ReadSetting.asm
;载入播放残有 push 0 push hWnd call LoadList ;=========================================================================================== ;读取INI设置 ;========================================================================================== invoke GetPrivateProfileInt,offset Config,offset top,0,offset INIPath mov TempNum,eax invoke GetPrivateProfileInt,offset Config,offset left,0,offset INIPath mov TempNum1,eax invoke GetPrivateProfileInt,offset Config,offset Window,0,offset INIPath mov WindowMode,eax .if eax==0 mov ecx,143 .elseif eax>0 .if eax==2 invoke GetDlgItem,hWnd,19 invoke SendMessage,eax,STM_SETIMAGE,IMAGE_BITMAP,hEQBitmap1 invoke ShowWindow,hDlg,TRUE invoke ShowWindow,hScroll,FALSE invoke ShowWindow,hList,FALSE .else invoke GetDlgItem,hWnd,21 invoke SendMessage,eax,STM_SETIMAGE,IMAGE_BITMAP,hListBitmap1 invoke ShowWindow,hDlg,FALSE mov WindowMode,1 .endif mov ecx,267 .endif invoke MoveWindow,hWnd,TempNum1,TempNum,288,ecx,TRUE invoke GetPrivateProfileInt,offset Config,offset RandPlay,0,offset INIPath .if eax==1 invoke CheckMenuItem,hMenu,103,MF_BYCOMMAND or MF_CHECKED invoke GetDlgItem,hWnd,18 invoke SendMessage,eax,STM_SETIMAGE,IMAGE_BITMAP,hLoopBitmap1 .endif invoke GetPrivateProfileInt,offset Config,offset LoopPlay,0,offset INIPath .if eax==1 invoke CheckMenuItem,hMenu,107,MF_BYCOMMAND or MF_CHECKED invoke GetDlgItem,hWnd,17 invoke SendMessage,eax,STM_SETIMAGE,IMAGE_BITMAP,hSkipBitmap1 .endif invoke GetPrivateProfileInt,offset Config,offset SongWordShowModeSave,0,offset INIPath mov SongWordShowMode,eax invoke GetPrivateProfileInt,offset Config,offset SongWordShowTime,0,offset INIPath .if eax<5 || eax>30 mov WordShowTime,5 .else mov WordShowTime,eax .endif invoke GetDlgItem,hWnd,1006 invoke SendMessage,eax,TBM_SETPOS,TRUE,WordShowTime ;总在最前 invoke GetPrivateProfileInt,offset Config,offset AlwaysTop,0,offset INIPath mov AlwaysTopB,eax cmp eax,0 jz @F invoke SetWindowPos,hWnd,HWND_TOPMOST,0,0,0,0,SWP_NOSIZE or SWP_NOMOVE @@: ;是否允许读取歌词设置 invoke GetPrivateProfileInt,offset Config,offset NotReadSongWordSet,0,offset INIPath mov NotReadSongWordSetB,eax ;是否允读取歌词并显示 invoke GetPrivateProfileInt,offset Config,offset NotReadSongWord,0,offset INIPath mov NotReadSongWordB,eax ;播放完毕复位 invoke GetPrivateProfileInt,offset Config,offset PlayDoneReset,0,offset INIPath mov PlayDoneResetB,eax invoke GetPrivateProfileInt,offset Config,offset AppDirEnable,0,offset INIPath mov AppDirEnableB,eax ;指定目录有效 invoke GetPrivateProfileString,offset Config,offset AppDirPath,0,offset AppDirPathBuff,sizeof AppDirPathBuff,offset INIPath invoke ShowWindow,hWnd,TRUE