Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
_

_T No name

@_T No name
About
Posts
49
Topics
20
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Help with adding jPanel Form to other form
    _ _T No name

    Hi All, I have added a jPanel Form in my applet project. Now i want to place this jPanel over other forms(Applet window) at run time. For that i created its object in Main applet window and try to place it. But its not visible there. Is there anyone who can catch something and help me . I am adding code as well

    //SaveContact is jPanel Form class i want to add SaveContact objFormSaveContact = new SaveContact(); this.getContentPane().add(objFormSaveContact); this.getContentPane().validate(); objFormSaveContact.setLocation(200, 50); objFormSaveContact.setVisible(true);

    Thanks.

    Java help

  • Vertical/Horizontal scroll bar not coming in CListCtrl
    _ _T No name

    hey guys i got it.. i dint insert enough items thats why it was not coming... Thanks

    C / C++ / MFC help tutorial learning

  • Vertical/Horizontal scroll bar not coming in CListCtrl
    _ _T No name

    hi, i am trying to make a customized Clist control. i have written my Class derived from CListCtrl. The problem is in this Vertical scroll bar are not coming when i dynamically create this list control. if i create it in resource and use DDX_Control and take it as my class variable it works fine(scroll bar comes) but if i create control dynamically scroll bars dont come. This is the creation code

    m_pList = new CCustomList(12);

    m\_pList->Create(LVS\_REPORT | LVS\_SINGLESEL | LVS\_EDITLABELS | WS\_CHILD | WS\_TABSTOP ,
                    CRect(0,0,620,100),this,IDC\_LIST3);
    
    DWORD dwStyle = m\_pList->GetExtendedStyle();
    dwStyle |= (LVS\_EX\_GRIDLINES | LVS\_EX\_FULLROWSELECT);
    m\_pList->SetExtendedStyle(dwStyle);
    

    please help if any one has any idea. i searched on net there are many ways to remove them but no solution how to show them. Thanks

    C / C++ / MFC help tutorial learning

  • TerminateThread() which is calling Interop dll function.
    _ _T No name

    Thanks to all of you for ur links and advices :) i will read all the eassays and then decide which will be approriate method to do my requirement. Thakx

    C / C++ / MFC c++ com help

  • TerminateThread() which is calling Interop dll function.
    _ _T No name

    what are the other ways possible in MFC plz tell me.... i have used AfxBeginThread() to create the thread

    C / C++ / MFC c++ com help

  • TerminateThread() which is calling Interop dll function.
    _ _T No name

    hi. i have one itnerop dll which i am using in a MFC application. i use the function of dll in a thread created in main application. At some event i want to TerminateThread() when i do that my dll function got hanged. when control comes to that function it looses its control. can anyone tell me what exactly happens in this senario and is TerminateThread() can be used in this manner Plz help Thanks

    C / C++ / MFC c++ com help

  • sending click message to child button of a window.
    _ _T No name

    i have tried that also i am afraid that also does not work.. i tried SendInput() with MOUSE_EVENT just to simulate the click event than this message is going but sometimes what happens this SendMessage goes to the default button in the window. The button i want to send the message is not the default button. :(

    C / C++ / MFC c++ help

  • sending click message to child button of a window.
    _ _T No name

    i have tried this also... but this also does not work.. You know what happend if i click anywhere on my desktop or elsewhere than message starts going. i dont quiet understand whats happening.

    C / C++ / MFC c++ help

  • sending click message to child button of a window.
    _ _T No name

    no event that dint help....

    C / C++ / MFC c++ help

  • bypass outlook security message "A programm is trying to access... "
    _ _T No name

    but how come google calendar sync does that. Do they have some collaboration or something.

    C# csharp com security help

  • sending click message to child button of a window.
    _ _T No name

    hi, i want to send a click message to a window button. i am able to enumerate the window and also find the handle of button as well but not able to send the click message. Actually the default focus is set on some another message if i send BM_CLICK message that call goes to other button not the one i am sending..... attached code is below

    CWnd\* pWnd = NULL;
    CWnd\* pWndBtn = NULL;
    DWORD dwErr = 0;
    while(true)
    {
         CWnd\* WindowHandle = NULL;
         CWnd\* ButtonHandle = NULL;
    
         WindowHandle = FindWindow(NULL, L"Microsoft Office Outlook");
    
         if(WindowHandle)
         {
             ButtonHandle = FindWindowEx(WindowHandle->GetSafeHwnd(), 0, L"Button", L"Allow");
    
         //send a message to the button that you are "clicking" it. Surprisingly C++ understands what BM\_CLICK is without having to set it. Different than VB
             if(ButtonHandle)
             {
                 CString strWnd ;
                 ButtonHandle->GetWindowText(strWnd);
                 WindowHandle->SetActiveWindow();
                 ButtonHandle->SendMessage(BM\_CLICK ,0,0);
             }
         }
    }
    

    plz help.. i tried even setting window active also but dint work

    C / C++ / MFC c++ help

  • bypass outlook security message "A programm is trying to access... "
    _ _T No name

    hi i have made an application which reads outlook events. while reading outlook events a warning popup comes with message "A program is trying to access your mail information...... " this is annoying for my users of application. Is there any way i can bypass this message i have useed Microsoft.Office.Interop.Outlook dll to read events. and code is written in c# .Net. plz help Thanks

    C# csharp com security help

  • Dialog size does not change when DPI settings change
    _ _T No name

    i am not getting any idea how to incorporate DPI in setting my dialog's width.. can u help me out....

    C / C++ / MFC graphics help

  • Dialog size does not change when DPI settings change
    _ _T No name

    that message is coming... but do i need to handle this seperately.. i mean shouldnt MFC change window size automatically ???

    C / C++ / MFC graphics help

  • Dialog size does not change when DPI settings change
    _ _T No name

    Hi, I have made a custom dialog have done some custom Drawing on it. it is derived from CDialog. when i change DPI settings on my system dialog size does not change accordingly.. I need it to be changed as i have set my font size according to DPI and font size changes.. plz help P.S. :- Not even dialog size i have some other custom controls also like button its size also does not change in my application Thanks

    C / C++ / MFC graphics help

  • TransparentBlt
    _ _T No name

    i am calling it before the TransparentBlt() only.. CDialog::OnEraseBkgnd(pDC); CRect rcClient; GetClientRect(rcClient); CDC memDC; memDC.CreateCompatibleDC(pDC); /* TODO : Draw according to state */ /* Title left */ memDC.SelectObject(&m_bmpTitleLeft); pDC->TransparentBlt(rcClient.left,rcClient.top,10,31,&memDC,0,0,10,31,CLR_TRANSPARENT); /* Title Middle */ int i = 0; memDC.SelectObject(&m_bmpTitleMiddle); pDC->StretchBlt(rcClient.left+10,rcClient.top,rcClient.right-10,31,&memDC,0,0,1,31,SRCCOPY); /*Title Right*/ memDC.SelectObject(&m_bmpTitleRight); pDC->TransparentBlt(rcClient.right-10,rcClient.top,10,31,&memDC,0,0,10,31,CLR_TRANSPARENT); /* set Title text */ pDC->SetBkMode(TRANSPARENT); CSize szTitle = pDC->GetTextExtent(m_strTitle); CRect rcTitle(rcClient.left+14,rcClient.top+15-(szTitle.cy/2),rcClient.left+14+szTitle.cx,rcClient.top+15+(szTitle.cy)/2); pDC->DrawText(m_strTitle,-1,&rcTitle,DT_CENTER || DT_SINGLELINE); /* set title box rectangle */ CRect rcTitleBox(rcClient.left,rcClient.top,rcClient.right,rcClient.top+31); m_rcTitleBox = rcTitleBox; /* set main view rectangle */ CRect rcViewDlg(rcClient.left,rcTitle.bottom,rcClient.right,rcClient.bottom); m_rcViewDlg = rcViewDlg; /* Middle right and left area */ memDC.SelectObject(&m_bmpMiddleLeft); pDC->StretchBlt(rcClient.left,rcClient.top+31,10,rcClient.bottom-10,&memDC,0,0,10,1,SRCCOPY); memDC.SelectObject(&m_bmpMiddleRight); pDC->StretchBlt(rcClient.right-10,rcClient.top+31,10,rcClient.bottom-10,&memDC,0,0,10,1,SRCCOPY); /* Middle ares is done by fill rectangle as drawing bitmap in loops makes it slow */ /* Middle area */ CRect rcMiddle(rcClient.left+10,rcClient.top+31+1,rcClient.right-10,rcClient.bottom-10); CBrush brushMiddle(RGB(219,230,244)); pDC->FillRect(&rcMiddle,&brushMiddle); /* Bottom left area */ memDC.SelectObject(&m_bmpBottomLeft); pDC->BitBlt(rcClient.left,rcClient.bottom-50,10,50,&memDC,0,0,SRCCOPY); /* Bottom middle area */ memDC.SelectObject(&m_bmpBottomMiddle); pDC->StretchBlt(rcClient.left+10,rcClient.bottom-50,rcClient.right-10,50,&memDC,0,0,1,50,SRCCOPY); /* Bottom right area */ memDC.SelectObject(&m_bmpBottomRight); pDC->BitBlt(rcClient.right-10,rcClient.bottom-50,10,50

    C / C++ / MFC

  • TransparentBlt
    _ _T No name

    hi, i have made a derived class from CDialog to customize it with my bitmaps in which some pixels need to be transparent. I am using TransparentBlt() for the same in OnEraseBkgnd() in derived class after calling CDialog::OnEraseBkgnd(). the thing is happening is those pixels are either coming grey so white sometime. not becoming transparent. Can anyone suggest where i am doing wrong !!! thanx

    C / C++ / MFC

  • sending message from service
    _ _T No name

    thanks i will read about pipes then.

    C / C++ / MFC design

  • sending message from service
    _ _T No name

    hi, i am working with window service. and i am able to show my application UI from service by using CreateProcessAsUser() but is it possible to send message from service to my application. thanks

    C / C++ / MFC design

  • win32 service for device detection
    _ _T No name

    hi i am writing a win 32 service while will detect the USB device when connected. I need to know the name of device which is connected i have written following service handler. VOID WINAPI ServiceHandler(DWORD fdwControl,DWORD evtype, LPVOID evdata, LPVOID Context) { /*DEV_BROADCAST_VOLUME* pDev = (DEV_BROADCAST_VOLUME*)evdata;*/ DEV_BROADCAST_HDR* pHdr = (DEV_BROADCAST_HDR*)evdata; switch(fdwControl) { case SERVICE_CONTROL_STOP: case SERVICE_CONTROL_SHUTDOWN: ProcessStarted = FALSE; ServiceStatus.dwWin32ExitCode = 0; ServiceStatus.dwCurrentState = SERVICE_STOPPED; ServiceStatus.dwCheckPoint = 0; ServiceStatus.dwWaitHint = 0; // terminate all processes started by this service before shutdown { EndProcess(/*i*/0); delete ProcessNames[/*i*/0]; } break; case SERVICE_CONTROL_PAUSE: ServiceStatus.dwCurrentState = SERVICE_PAUSED; break; case SERVICE_CONTROL_CONTINUE: ServiceStatus.dwCurrentState = SERVICE_RUNNING; break; case SERVICE_CONTROL_INTERROGATE: break; case SERVICE_CONTROL_DEVICEEVENT: switch(evtype) { case DBT_DEVICEARRIVAL: //DEV_BROADCAST_VOLUME* pDev = (DEV_BROADCAST_VOLUME*)evdata; if(pHdr->dbch_devicetype == DBT_DEVTYP_DEVICEINTERFACE) { DEV_BROADCAST_DEVICEINTERFACE *pDevInt = (DEV_BROADCAST_DEVICEINTERFACE*)evdata; UpdateDevice(pDevInt,(WPARAM)evtype); } break; case DBT_DEVICEREMOVECOMPLETE: //DEV_BROADCAST_VOLUME* pDev = (DEV_BROADCAST_VOLUME*)evdata; if(pHdr->dbch_devicetype == DBT_DEVTYP_DEVICEINTERFACE) { DEV_BROADCAST_DEVICEINTERFACE *pDevInt = (DEV_BROADCAST_DEVICEINTERFACE*)evdata; UpdateDevice(pDevInt,(WPARAM)evtype); } break; } break; } in case of DBT_DEVICEARRIVAL the pDevInt i am getting does not contain the dbcc_name string. it only contains "\". Plz help where i am doing wrong thanx in advance

    C / C++ / MFC help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups