Click here to Skip to main content
15,890,282 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is CB_FINDSTRINGEXACT unicode or ansii (mbcs)? Pin
Code-o-mat30-May-10 10:25
Code-o-mat30-May-10 10:25 
GeneralRe: Is CB_FINDSTRINGEXACT unicode or ansii (mbcs)? Pin
Aescleal30-May-10 10:29
Aescleal30-May-10 10:29 
GeneralRe: Is CB_FINDSTRINGEXACT unicode or ansii (mbcs)? Pin
Code-o-mat30-May-10 11:14
Code-o-mat30-May-10 11:14 
QuestionIs this multi-threading samples is the bug of vc6 ? Pin
wangningyu30-May-10 2:47
wangningyu30-May-10 2:47 
AnswerRe: Is this multi-threading samples is the bug of vc6 ? Pin
Aescleal30-May-10 9:26
Aescleal30-May-10 9:26 
AnswerRe: Is this multi-threading samples is the bug of vc6 ? Pin
Stephen Hewitt30-May-10 14:25
Stephen Hewitt30-May-10 14:25 
QuestionBringWindowToTop / Win32 Pin
Fareed Rizkalla30-May-10 2:31
Fareed Rizkalla30-May-10 2:31 
AnswerRe: BringWindowToTop / Win32 Pin
Software_Developer30-May-10 7:25
Software_Developer30-May-10 7:25 
Try
SetForegroundWindow or ForceForegroundWindow or SetWindowPos or SwitchToThisWindow

or this, but it might not work.

#include <windows.h>
char title[500];
HWND WindowHandle;

BOOL CALLBACK MyEnumProc(HWND hWnd, LPARAM lParam) 
{
    GetWindowText(hWnd, title, 500);    
    if(strstr(title, "SomeTitle"))    
    {
          WindowHandle = hWnd;
        return FALSE;
    }    
    return TRUE;
}

int main(int argc, char *argv[])
{    
    EnumWindows(MyEnumProc, 0);
   SwitchToThisWindow(WindowHandle,TRUE);
   system("PAUSE");

 
return EXIT_SUCCESS;
}

Questionmultiplication of two arrays Pin
hasani200730-May-10 1:05
hasani200730-May-10 1:05 
AnswerRe: multiplication of two arrays Pin
Richard MacCutchan30-May-10 1:19
mveRichard MacCutchan30-May-10 1:19 
GeneralRe: multiplication of two arrays Pin
hasani200730-May-10 1:46
hasani200730-May-10 1:46 
GeneralRe: multiplication of two arrays Pin
Richard MacCutchan30-May-10 3:17
mveRichard MacCutchan30-May-10 3:17 
AnswerRe: multiplication of two arrays Pin
CPallini30-May-10 2:57
mveCPallini30-May-10 2:57 
GeneralRe: multiplication of two arrays Pin
ThatsAlok30-May-10 20:48
ThatsAlok30-May-10 20:48 
GeneralRe: multiplication of two arrays Pin
CPallini30-May-10 22:57
mveCPallini30-May-10 22:57 
AnswerRe: multiplication of two arrays Pin
ThatsAlok31-May-10 1:45
ThatsAlok31-May-10 1:45 
AnswerRe: multiplication of two arrays Pin
ThatsAlok30-May-10 20:49
ThatsAlok30-May-10 20:49 
Questionabout Operator of >> and << in the Memory-Mapping Files. Pin
lxlenovostar30-May-10 0:41
lxlenovostar30-May-10 0:41 
AnswerRe: about Operator of >> and << in the Memory-Mapping Files. Pin
Richard MacCutchan30-May-10 1:32
mveRichard MacCutchan30-May-10 1:32 
GeneralRe: about Operator of >> and << in the Memory-Mapping Files. Pin
lxlenovostar30-May-10 16:14
lxlenovostar30-May-10 16:14 
Questionsimple char array Pin
hasani200729-May-10 6:58
hasani200729-May-10 6:58 
AnswerRe: simple char array Pin
Luc Pattyn29-May-10 7:05
sitebuilderLuc Pattyn29-May-10 7:05 
GeneralRe: simple char array Pin
hasani200729-May-10 7:25
hasani200729-May-10 7:25 
AnswerRe: simple char array Pin
Luc Pattyn29-May-10 7:55
sitebuilderLuc Pattyn29-May-10 7:55 
AnswerRe: simple char array Pin
Software_Developer29-May-10 8:11
Software_Developer29-May-10 8:11 

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.