Click here to Skip to main content
15,845,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: void type Pin
Richard MacCutchan12-Apr-20 0:40
mveRichard MacCutchan12-Apr-20 0:40 
GeneralRe: void type Pin
kalberts11-Apr-20 13:01
kalberts11-Apr-20 13:01 
GeneralRe: void type Pin
Greg Utas12-Apr-20 1:20
professionalGreg Utas12-Apr-20 1:20 
GeneralRe: void type Pin
leon de boer11-Apr-20 22:51
leon de boer11-Apr-20 22:51 
GeneralRe: void type Pin
Calin Negru11-Apr-20 22:47
Calin Negru11-Apr-20 22:47 
QuestionHow do I add listboxes to a back buffer and use that? Pin
PotatoSoup6-Apr-20 6:57
PotatoSoup6-Apr-20 6:57 
AnswerRe: How do I add listboxes to a back buffer and use that? Pin
Richard MacCutchan6-Apr-20 7:21
mveRichard MacCutchan6-Apr-20 7:21 
GeneralRe: How do I add listboxes to a back buffer and use that? Pin
PotatoSoup6-Apr-20 7:46
PotatoSoup6-Apr-20 7:46 
Do you mean like this?
C++
case WM_PAINT:
    {

        PAINTSTRUCT ps;

        HDC_of_MainWindow = BeginPaint(hwnd, &ps);

        Draw_From_FRONT_BUFFER_To_MainWindow();

        ShowWindow(Handle_of_ListBox, SW_SHOW);

        EndPaint(hwnd, &ps);


        return 0;
    }
break;


I tried that already.

The listbox seems to be there but invisible.
The way that I did it before, the listbox was there but invisible.
I could detect clicking on the area where the listbox was supposed to be was not allowing me to click on the main window.
I click where the listbox is blocking other things, but nothing happens.
It is invisible or just blocking my clicks to the main window. I want to see the listbox and interact with it.
GeneralRe: How do I add listboxes to a back buffer and use that? Pin
Richard MacCutchan6-Apr-20 8:04
mveRichard MacCutchan6-Apr-20 8:04 
GeneralRe: How do I add listboxes to a back buffer and use that? Pin
PotatoSoup6-Apr-20 8:26
PotatoSoup6-Apr-20 8:26 
GeneralRe: How do I add listboxes to a back buffer and use that? Pin
Victor Nijegorodov6-Apr-20 9:24
Victor Nijegorodov6-Apr-20 9:24 
GeneralRe: How do I add listboxes to a back buffer and use that? Pin
PotatoSoup6-Apr-20 9:43
PotatoSoup6-Apr-20 9:43 
GeneralRe: How do I add listboxes to a back buffer and use that? Pin
Victor Nijegorodov6-Apr-20 9:49
Victor Nijegorodov6-Apr-20 9:49 
GeneralRe: How do I add listboxes to a back buffer and use that? Pin
PotatoSoup6-Apr-20 12:07
PotatoSoup6-Apr-20 12:07 
GeneralRe: How do I add listboxes to a back buffer and use that? Pin
leon de boer6-Apr-20 22:06
leon de boer6-Apr-20 22:06 
SuggestionRe: How do I add listboxes to a back buffer and use that? Pin
David Crow6-Apr-20 9:59
David Crow6-Apr-20 9:59 
GeneralRe: How do I add listboxes to a back buffer and use that? Pin
PotatoSoup6-Apr-20 12:31
PotatoSoup6-Apr-20 12:31 
GeneralRe: How do I add listboxes to a back buffer and use that? Pin
Greg Utas6-Apr-20 13:39
professionalGreg Utas6-Apr-20 13:39 
GeneralRe: How do I add listboxes to a back buffer and use that? Pin
PotatoSoup6-Apr-20 13:52
PotatoSoup6-Apr-20 13:52 
GeneralRe: How do I add listboxes to a back buffer and use that? Pin
Greg Utas6-Apr-20 13:55
professionalGreg Utas6-Apr-20 13:55 
GeneralRe: How do I add listboxes to a back buffer and use that? Pin
PotatoSoup6-Apr-20 19:58
PotatoSoup6-Apr-20 19:58 
GeneralRe: How do I add listboxes to a back buffer and use that? Pin
Greg Utas7-Apr-20 1:05
professionalGreg Utas7-Apr-20 1:05 
GeneralRe: How do I add listboxes to a back buffer and use that? Pin
Victor Nijegorodov6-Apr-20 21:42
Victor Nijegorodov6-Apr-20 21:42 
GeneralRe: How do I add listboxes to a back buffer and use that? Pin
Member 1507871612-Jul-22 15:20
Member 1507871612-Jul-22 15:20 
GeneralRe: How do I add listboxes to a back buffer and use that? Pin
Richard MacCutchan6-Apr-20 22:42
mveRichard MacCutchan6-Apr-20 22:42 

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.