Click here to Skip to main content
15,917,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: search a list control Pin
carter200019-Jul-09 21:58
carter200019-Jul-09 21:58 
GeneralRe: search a list control Pin
rahuljin19-Jul-09 22:18
rahuljin19-Jul-09 22:18 
GeneralRe: search a list control Pin
carter200019-Jul-09 23:10
carter200019-Jul-09 23:10 
GeneralRe: search a list control Pin
rahuljin19-Jul-09 23:27
rahuljin19-Jul-09 23:27 
GeneralRe: search a list control Pin
carter200019-Jul-09 23:34
carter200019-Jul-09 23:34 
GeneralRe: search a list control Pin
rahuljin19-Jul-09 23:45
rahuljin19-Jul-09 23:45 
GeneralRe: search a list control Pin
carter200020-Jul-09 0:06
carter200020-Jul-09 0:06 
GeneralRe: search a list control Pin
carter200019-Jul-09 23:19
carter200019-Jul-09 23:19 
BYTE m_M1, m_M2, m_M3, m_M4;    
    TCHAR ss[50] = {0};	
    UpdateData();
    ipAdd.GetAddress(m_M1, m_M2, m_M3, m_M4);	
    _stprintf_s(ss, _T("%d.%d.%d.%d"), m_M1, m_M2, m_M3, m_M4);  
    int compare;
    for (int i = 0; i < ipList.GetItemCount(), ++i)
    {
        compare = lstrcmp(ss, ipList.GetItemText(i));
        if(radBut1->GetState())	
        {		
            if(m_M1 && m_M2 && m_M3 && m_M4 && compare != 0)		
            {			
                ipList.InsertItem(s++, (LPCTSTR)ss);			
                ipAdd.ClearAddress();		
            }	
        }	
        else if(radBut2->GetState())	
        {		
            if(compare == 0)			
                ipList.DeleteItem(i);		
            else 			
                MessageBox((LPCTSTR)L"Error: Address not found", (LPCTSTR)L"Delete Address", MB_ICONWARNING | MB_OK);		
            ipAdd.ClearAddress();
        }
    }


This is the final version. Smile | :)
GeneralRe: search a list control [modified] Pin
rahuljin19-Jul-09 23:39
rahuljin19-Jul-09 23:39 
GeneralRe: search a list control Pin
carter200019-Jul-09 23:42
carter200019-Jul-09 23:42 
GeneralRe: search a list control Pin
rahuljin21-Jul-09 10:05
rahuljin21-Jul-09 10:05 
GeneralRe: search a list control Pin
carter200021-Jul-09 15:02
carter200021-Jul-09 15:02 
GeneralRe: search a list control Pin
carter200021-Jul-09 15:08
carter200021-Jul-09 15:08 
GeneralRe: search a list control [modified] Pin
rahuljin21-Jul-09 20:13
rahuljin21-Jul-09 20:13 
AnswerRe: search a list control Pin
Naveen17-Jul-09 23:07
Naveen17-Jul-09 23:07 
GeneralRe: search a list control Pin
rahuljin17-Jul-09 23:46
rahuljin17-Jul-09 23:46 
AnswerRe: search a list control Pin
carter200020-Jul-09 20:48
carter200020-Jul-09 20:48 
QuestionInstallling an XP Program in Vista Pin
Bram van Kampen17-Jul-09 15:15
Bram van Kampen17-Jul-09 15:15 
AnswerRe: Installling an XP Program in Vista Pin
ThatsAlok18-Jul-09 7:41
ThatsAlok18-Jul-09 7:41 
QuestionConverting static libraries to dynamic libraries. Pin
Ben Burnett17-Jul-09 7:35
Ben Burnett17-Jul-09 7:35 
AnswerRe: Converting static libraries to dynamic libraries. Pin
Stuart Dootson17-Jul-09 13:10
professionalStuart Dootson17-Jul-09 13:10 
GeneralRe: Converting static libraries to dynamic libraries. Pin
Rick York18-Jul-09 16:48
mveRick York18-Jul-09 16:48 
QuestionRedisplay image in new dimensions Pin
Darryl Bryk17-Jul-09 7:27
Darryl Bryk17-Jul-09 7:27 
AnswerRe: Redisplay image in new dimensions Pin
Rozis17-Jul-09 11:54
Rozis17-Jul-09 11:54 
GeneralRe: Redisplay image in new dimensions Pin
Darryl Bryk17-Jul-09 12:40
Darryl Bryk17-Jul-09 12:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.