Click here to Skip to main content
15,902,840 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Toolbar bug? Pin
Deian13-May-04 9:33
Deian13-May-04 9:33 
AnswerRe: Toolbar bug? Pin
vividtang13-May-04 22:04
vividtang13-May-04 22:04 
GeneralRe: Toolbar bug? Pin
Deian14-May-04 4:44
Deian14-May-04 4:44 
GeneralWindowless activex controls in CDialogs... Pin
Neo20513-May-04 6:52
Neo20513-May-04 6:52 
GeneralOnParentNotify (related to WM_RButtonDown) Pin
doctorpi13-May-04 6:05
doctorpi13-May-04 6:05 
GeneralRe: OnParentNotify (related to WM_RButtonDown) Pin
Antti Keskinen13-May-04 7:22
Antti Keskinen13-May-04 7:22 
GeneralRe: OnParentNotify (related to WM_RButtonDown) Pin
doctorpi13-May-04 7:28
doctorpi13-May-04 7:28 
GeneralRe: OnParentNotify (related to WM_RButtonDown) Pin
Antti Keskinen13-May-04 10:57
Antti Keskinen13-May-04 10:57 
It seems that MFC lacks the appropriate function. Here is a function you can use to quickly change the style flag. It assumes that you implement it as a part of a class derived from CWnd (any control or window)
void CMyWndClass::SetExStyle(DWORD dwExStyle)
{
    // Set the window extended style
    ::SetWindowLong( this->m_hWnd, GWL_EXSTYLE, (long)dwExStyle );<DIV>

    // Force a refresh on the window, so that cached data is cleared
    this->SetWindowPos(NULL, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOZORDER | SWP_NOMOVE | SWP_NOSIZE );
}
Remember to implement this function as a member in your CWnd-derived class. Otherwise you need to modify the parameters so that the function receives a HWND parameter or a CWnd class pointer. Also, the 'this' pointer must be modified in such a case.

-Antti Keskinen


----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralwaveInPrepareHeader increases handle Pin
13-May-04 5:14
suss13-May-04 5:14 
GeneralRe: waveInPrepareHeader increases handle Pin
bikram singh13-May-04 5:31
bikram singh13-May-04 5:31 
GeneralRe: waveInPrepareHeader increases handle Pin
huaiyeu13-May-04 5:36
huaiyeu13-May-04 5:36 
GeneralRe: waveInPrepareHeader increases handle Pin
Joe Woodbury13-May-04 8:59
professionalJoe Woodbury13-May-04 8:59 
GeneralRe: waveInPrepareHeader increases handle Pin
13-May-04 10:38
suss13-May-04 10:38 
GeneralRbuttonDown and OnCommand Pin
doctorpi13-May-04 4:58
doctorpi13-May-04 4:58 
GeneralRe: RbuttonDown and OnCommand Pin
toxcct13-May-04 5:19
toxcct13-May-04 5:19 
GeneralRe: RbuttonDown and OnCommand Pin
doctorpi13-May-04 5:22
doctorpi13-May-04 5:22 
GeneralRe: RbuttonDown and OnCommand Pin
toxcct13-May-04 5:27
toxcct13-May-04 5:27 
GeneralRe: RbuttonDown and OnCommand Pin
doctorpi13-May-04 5:34
doctorpi13-May-04 5:34 
GeneralRe: RbuttonDown and OnCommand Pin
David Crow13-May-04 6:39
David Crow13-May-04 6:39 
GeneralRe: RbuttonDown and OnCommand Pin
doctorpi13-May-04 7:03
doctorpi13-May-04 7:03 
GeneralRe: RbuttonDown and OnCommand Pin
David Crow13-May-04 6:55
David Crow13-May-04 6:55 
GeneralRe: RbuttonDown and OnCommand Pin
doctorpi13-May-04 7:22
doctorpi13-May-04 7:22 
GeneralRe: RbuttonDown and OnCommand Pin
David Crow13-May-04 9:18
David Crow13-May-04 9:18 
GeneralRe: RbuttonDown and OnCommand Pin
doctorpi13-May-04 9:23
doctorpi13-May-04 9:23 
GeneralRe: RbuttonDown and OnCommand Pin
David Crow13-May-04 9:26
David Crow13-May-04 9:26 

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.