Click here to Skip to main content
15,908,264 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CString Pin
namaskaaram25-Jun-06 22:45
namaskaaram25-Jun-06 22:45 
GeneralRe: CString Pin
namaskaaram25-Jun-06 22:49
namaskaaram25-Jun-06 22:49 
QuestionNeed Some Help PLZ!!! Pin
Programm3r25-Jun-06 19:50
Programm3r25-Jun-06 19:50 
AnswerRe: Need Some Help PLZ!!! Pin
Viorel.25-Jun-06 20:40
Viorel.25-Jun-06 20:40 
Questiongetting rid of linking errors Pin
sach!!25-Jun-06 19:47
sach!!25-Jun-06 19:47 
AnswerRe: getting rid of linking errors Pin
Sam Hobbs26-Jun-06 13:34
Sam Hobbs26-Jun-06 13:34 
QuestionText Box Key Down Event Pin
satsumatable25-Jun-06 19:33
satsumatable25-Jun-06 19:33 
GeneralFindwindow() Pin
Anu_Bala25-Jun-06 19:31
Anu_Bala25-Jun-06 19:31 
Iam switching between tow different exe's by using Findwindow() function int two applications,
void CMainFrame::OnSwitchfod()
{
HWND hwnd = ::FindWindow(NULL, "Bitmap");
if (hwnd)
{
::ShowWindow(hwnd, SW_SHOWDEFAULT);
::BringWindowToTop(hwnd);
}
}
and i code precreatewindow in both application as follows,
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
/*cs.style = WS_POPUP | WS_OVERLAPPED | WS_CAPTION | FWS_ADDTOTITLE| WS_SYSMENU | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_MAXIMIZE;
return CMDIFrameWnd::PreCreateWindow(cs);*/
if(!CMDIFrameWnd::PreCreateWindow(cs))
return FALSE;
if (cs.hInstance)
{
static const TCHAR className[] = _T ("UniqueWindowClassName");
// Get the existing WNDCLASS.
WNDCLASS wc;
VERIFY(GetClassInfo(cs.hInstance, cs.lpszClass, &wc));
// Change the name.
wc.lpszClassName = className;
// Register the renamed WNDCLASS.
VERIFY(AfxRegisterClass(&wc));
// Use the new one.
cs.lpszClass = className;
}
return TRUE;
}
Its working fine,but i click one button in one application,the second application come to front,but it is in minimize mode.I have to maximize that.
My problem is..when i click button it should open in maximized mode.What can i do?
GeneralRe: Findwindow() Pin
Viorel.25-Jun-06 20:26
Viorel.25-Jun-06 20:26 
GeneralRe: Findwindow() Pin
Anu_Bala25-Jun-06 20:58
Anu_Bala25-Jun-06 20:58 
QuestionProcess information which locked a file Pin
Sarath C25-Jun-06 19:00
Sarath C25-Jun-06 19:00 
AnswerRe: Process information which locked a file Pin
Stephen Hewitt25-Jun-06 22:02
Stephen Hewitt25-Jun-06 22:02 
Questiontransmit a packet to serial device Pin
thathvamsi25-Jun-06 18:37
thathvamsi25-Jun-06 18:37 
AnswerRe: transmit a packet to serial device Pin
Stephen Hewitt25-Jun-06 18:38
Stephen Hewitt25-Jun-06 18:38 
GeneralRe: transmit a packet to serial device Pin
Ryan Binns25-Jun-06 19:05
Ryan Binns25-Jun-06 19:05 
AnswerRe: transmit a packet to serial device Pin
kakan25-Jun-06 19:17
professionalkakan25-Jun-06 19:17 
GeneralRe: transmit a packet to serial device Pin
thathvamsi25-Jun-06 20:08
thathvamsi25-Jun-06 20:08 
QuestionDebuging in Visual C++ Pin
tamasan25-Jun-06 18:23
tamasan25-Jun-06 18:23 
AnswerRe: Debuging in Visual C++ Pin
Sarath C25-Jun-06 19:06
Sarath C25-Jun-06 19:06 
GeneralRe: Debuging in Visual C++ Pin
tamasan25-Jun-06 20:47
tamasan25-Jun-06 20:47 
GeneralRe: Debuging in Visual C++ Pin
kakan25-Jun-06 21:38
professionalkakan25-Jun-06 21:38 
QuestionC++ Help Pin
buckcherry25-Jun-06 18:03
buckcherry25-Jun-06 18:03 
AnswerRe: C++ Help Pin
Steve Mayfield25-Jun-06 18:23
Steve Mayfield25-Jun-06 18:23 
GeneralRe: C++ Help Pin
buckcherry25-Jun-06 18:25
buckcherry25-Jun-06 18:25 
AnswerRe: C++ Help Pin
Super Lloyd25-Jun-06 18:47
Super Lloyd25-Jun-06 18:47 

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.