Click here to Skip to main content
15,914,780 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Search node in IXMLDOMDocument Pin
palbano3-Aug-04 7:52
palbano3-Aug-04 7:52 
GeneralRe: Search node in IXMLDOMDocument Pin
Anonymous3-Aug-04 22:23
Anonymous3-Aug-04 22:23 
GeneralRebuilding ClassWizard info/data Pin
0v3rloader1-Aug-04 21:50
0v3rloader1-Aug-04 21:50 
GeneralRe: Rebuilding ClassWizard info/data Pin
Michael P Butler1-Aug-04 22:43
Michael P Butler1-Aug-04 22:43 
GeneralRe: Rebuilding ClassWizard info/data Pin
0v3rloader2-Aug-04 0:16
0v3rloader2-Aug-04 0:16 
GeneralRe: Rebuilding ClassWizard info/data Pin
Michael P Butler2-Aug-04 0:29
Michael P Butler2-Aug-04 0:29 
QuestionHow to select a folder in TreeView and list its contents in a ListView Control? Pin
Arun AC1-Aug-04 21:47
Arun AC1-Aug-04 21:47 
AnswerRe: How to select a folder in TreeView and list its contents in a ListView Control? Pin
Allenpaul1-Aug-04 23:25
Allenpaul1-Aug-04 23:25 
I hope this will help you,

The ListView sample demonstrates the extended ListView styles and item indenting.

File: ListView.c

HANDLE g_hInst;
TCHAR szClassName[] = TEXT("ListViewClass");
BOOL g_bCustomDraw;

#define IDC_LISTVIEW 1000


WinMain


int PASCAL WinMain( HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
MSG msg;
INITCOMMONCONTROLSEX iccex;

//required to use the common controls
iccex.dwSize = sizeof(INITCOMMONCONTROLSEX);
iccex.dwICC = ICC_LISTVIEW_CLASSES;
InitCommonControlsEx(&iccex);

g_hInst = hInstance;

if(!hPrevInstance)
if(!InitApplication(hInstance))
return FALSE;

/* Perform initializations that apply to a specific instance */

if (!InitInstance(hInstance, nCmdShow))
return FALSE;

/* Acquire and dispatch messages until a WM_QUIT uMessage is received. */

while(GetMessage(&msg, NULL, 0x00, 0x00))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}

return msg.wParam;
}


/******************************************************************************

MainWndProc

******************************************************************************/

LRESULT CALLBACK MainWndProc( HWND hWnd,
UINT uMessage,
WPARAM wParam,
LPARAM lParam)
{
switch (uMessage)
{
case WM_CREATE:
{
HWND hwndListView;

g_bCustomDraw = FALSE;

// create the TreeView control
hwndListView = CreateListView(g_hInst, hWnd);

//initialize the TreeView control
InitListView(hwndListView);
}
break;

case WM_NOTIFY:
return ListViewNotify(hWnd, lParam);

case WM_SIZE:
ResizeListView(GetDlgItem(hWnd, IDC_LISTVIEW), hWnd);
break;

case WM_INITMENUPOPUP:
UpdateMenu(GetDlgItem(hWnd, IDC_LISTVIEW), GetMenu(hWnd));
break;

case WM_CONTEXTMENU:
if(HandleContextMenu(hWnd, wParam, lParam))
return FALSE;
break;

case WM_COMMAND:
return HandleCommand(hWnd, wParam, lParam);

case WM_DESTROY:
PostQuitMessage(0);
break;

default:
break;
}
return DefWindowProc(hWnd, uMessage, wParam, lParam);
}


/******************************************************************************

AboutDlgProc

******************************************************************************/

BOOL CALLBACK AboutDlgProc( HWND hDlg,
UINT uMessage,
WPARAM wParam,
LPARAM lParam)
{
switch (uMessage)
{
case WM_INITDIALOG:
return TRUE;

case WM_COMMAND:
switch(wParam)
{
case IDOK:
EndDialog(hDlg, IDOK);
break;

case IDCANCEL:
EndDialog(hDlg, IDOK);
break;
}
return TRUE;
}

return FALSE;
}


IF you need further details visit microsoft.com ListViewControl

GeneralI need a kind of scheduler Pin
muharrem1-Aug-04 21:14
muharrem1-Aug-04 21:14 
GeneralRe: I need a kind of scheduler Pin
ThatsAlok1-Aug-04 23:28
ThatsAlok1-Aug-04 23:28 
GeneralRe: I need a kind of scheduler Pin
muharrem2-Aug-04 2:50
muharrem2-Aug-04 2:50 
GeneralRe: I need a kind of scheduler Pin
David Crow2-Aug-04 3:36
David Crow2-Aug-04 3:36 
QuestionHow to clear the screen in DOS Pin
CreepingFeature1-Aug-04 20:35
CreepingFeature1-Aug-04 20:35 
AnswerRe: How to clear the screen in DOS Pin
V.1-Aug-04 20:38
professionalV.1-Aug-04 20:38 
AnswerRe: How to clear the screen in DOS Pin
ThatsAlok1-Aug-04 22:21
ThatsAlok1-Aug-04 22:21 
AnswerRe: How to clear the screen in DOS Pin
avenger_sb252-Aug-04 0:02
avenger_sb252-Aug-04 0:02 
AnswerRe: How to clear the screen in DOS Pin
Archer2822-Aug-04 4:43
Archer2822-Aug-04 4:43 
GeneralMS-ACCESS......few problems!!! Pin
Anonymous1-Aug-04 20:29
Anonymous1-Aug-04 20:29 
GeneralRe: MS-ACCESS......few problems!!! Pin
Michael P Butler1-Aug-04 22:49
Michael P Butler1-Aug-04 22:49 
Generalproblem getting size of file Pin
Archer2821-Aug-04 20:12
Archer2821-Aug-04 20:12 
GeneralRe: problem getting size of file Pin
David Crow2-Aug-04 3:57
David Crow2-Aug-04 3:57 
Generalatof question Pin
User 5838521-Aug-04 20:09
User 5838521-Aug-04 20:09 
GeneralRe: atof question Pin
Archer2821-Aug-04 20:35
Archer2821-Aug-04 20:35 
GeneralRe: atof question Pin
Rick York1-Aug-04 21:06
mveRick York1-Aug-04 21:06 
GeneralRe: atof question Pin
User 5838522-Aug-04 1:05
User 5838522-Aug-04 1:05 

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.