Click here to Skip to main content
15,921,577 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Saving with MFC Pin
valikac28-Oct-02 11:37
valikac28-Oct-02 11:37 
GeneralRe: Saving with MFC Pin
dinner@628-Oct-02 11:59
dinner@628-Oct-02 11:59 
GeneralRe: Saving with MFC Pin
valikac28-Oct-02 12:12
valikac28-Oct-02 12:12 
GeneralRe: Saving with MFC Pin
Christian Graus28-Oct-02 13:25
protectorChristian Graus28-Oct-02 13:25 
GeneralRe: Saving with MFC Pin
ian mariano28-Oct-02 17:38
ian mariano28-Oct-02 17:38 
GeneralCImage -- Can't get it working Pin
nde_plume28-Oct-02 11:26
nde_plume28-Oct-02 11:26 
GeneralRe: CImage -- Can't get it working Pin
Christian Graus28-Oct-02 11:31
protectorChristian Graus28-Oct-02 11:31 
GeneralStrange Problem. Pin
Anonymous28-Oct-02 10:25
Anonymous28-Oct-02 10:25 
Hi, I'm trying to create a simple Listbox, using Win32, no MFC.

void CreateSpilList()
{
ProgramList = CreateWindow (TEXT ("listbox"), NULL,
WS_CHILD | WS_VISIBLE | LBS_STANDARD,
5, 5,
100,
100,
hwnd, (HMENU)10,
GetModuleHandle(NULL),
NULL) ;
}

I've created a simple function that should create the listbox.

case WM_CREATE:
{
CreateSpilList();
break;
}

The WM_CREATE Message should create my Listbox, but it wont, nothing happens.
But, the strange thing is, if i remove CreateSpilList(); and inserts whats in the function:

like so.

case WM_CREATE:
{ ProgramList = CreateWindow (TEXT ("listbox"), NULL,
WS_CHILD | WS_VISIBLE | LBS_STANDARD,
5, 5,
100,
100,
hwnd, (HMENU)10,
GetModuleHandle(NULL),
NULL) ;

break;
}

It works, why can't I create my listbox by using a function like my CreateSpilList() ???

It make no sense, even if i inline the CreateSpilList() nothing happens.

Can anyone give me an answer on this strange "bug" ?? Smile | :)

Thanks



GeneralRe: Strange Problem. Pin
Maximilien28-Oct-02 10:35
Maximilien28-Oct-02 10:35 
GeneralRe: Strange Problem. Pin
Anonymous28-Oct-02 11:08
Anonymous28-Oct-02 11:08 
GeneralQuestion concerning bitmaps Pin
Steven M Hunt28-Oct-02 10:22
Steven M Hunt28-Oct-02 10:22 
GeneralRe: Question concerning bitmaps Pin
Christian Graus28-Oct-02 10:29
protectorChristian Graus28-Oct-02 10:29 
GeneralMFC/Win32 MicroPhone Mute Pin
Moshe Bergman28-Oct-02 10:01
sussMoshe Bergman28-Oct-02 10:01 
GeneralRe: MFC/Win32 MicroPhone Mute Pin
ian mariano28-Oct-02 17:43
ian mariano28-Oct-02 17:43 
GeneralSending Keyboard Events to a Window Pin
Abin28-Oct-02 9:31
Abin28-Oct-02 9:31 
GeneralRe: Sending Keyboard Events to a Window Pin
Christian Graus28-Oct-02 10:17
protectorChristian Graus28-Oct-02 10:17 
GeneralThank you, and gimme more... Pin
Abin28-Oct-02 15:43
Abin28-Oct-02 15:43 
GeneralRe: Thank you, and gimme more... Pin
Christian Graus28-Oct-02 16:49
protectorChristian Graus28-Oct-02 16:49 
GeneralRe: Thank you, and gimme more... Pin
Abin29-Oct-02 11:07
Abin29-Oct-02 11:07 
GeneralMCI control Pin
devvvy28-Oct-02 9:18
devvvy28-Oct-02 9:18 
GeneralGrid Printing Pin
Anthony988728-Oct-02 9:05
Anthony988728-Oct-02 9:05 
GeneralMFC hinstances Pin
will138328-Oct-02 8:25
will138328-Oct-02 8:25 
GeneralRe: MFC hinstances Pin
Christian Graus28-Oct-02 8:41
protectorChristian Graus28-Oct-02 8:41 
QuestionHow to create a moveable CStatic object? Pin
work_to_live28-Oct-02 8:01
work_to_live28-Oct-02 8:01 
AnswerRe: How to create a moveable CStatic object? Pin
ian mariano28-Oct-02 18:24
ian mariano28-Oct-02 18:24 

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.