Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
AnswerRe: Need to Internet chat app. Pin
leckey4-May-08 17:30
leckey4-May-08 17:30 
QuestionDynamic WorkFlow Pin
Thaer Hamael4-May-08 2:15
Thaer Hamael4-May-08 2:15 
AnswerRe: Dynamic WorkFlow Pin
Kevin McFarlane4-May-08 3:25
Kevin McFarlane4-May-08 3:25 
QuestionPhone Diael in C# Pin
E_Gold4-May-08 0:23
E_Gold4-May-08 0:23 
AnswerRe: Phone Diael in C# Pin
Gareth H4-May-08 3:58
Gareth H4-May-08 3:58 
GeneralRe: Phone Diael in C# Pin
E_Gold4-May-08 18:19
E_Gold4-May-08 18:19 
GeneralRe: Phone Diael in C# Pin
Joachim Kerschbaumer4-May-08 22:48
Joachim Kerschbaumer4-May-08 22:48 
QuestionWindows Explorer Columns Pin
Calvin Streeting3-May-08 23:44
Calvin Streeting3-May-08 23:44 
Hi...
I am writing a windows explorer toolbar that sets up a standard st of columns (like author, comments, etc..) so the user dosn't have to do it..(later will add more functions for handeling MS office documents etc..)

Now i have a working toolbar and have made my way through explorer to the lSysListView32 and using a LVCOLUMN managed to send the message that inserts the column..

But (allways a but) dose any one know how to tell explorer to populate the column with the info? I am only using standard columns (like author, comments, etc..)

Code So far...
<br />
private void button1_Click(object sender, System.EventArgs e)<br />
   {<br />
	MessageBox.Show("Button Clicked!");<br />
            //set the view to detail<br />
            SendMessage(Explorer.HWND, LVM_COMMAND, viewREPORT, 0);<br />
            //now get the<br />
            IntPtr lSHELLDLLDefView = FindWindowEx(Explorer.HWND, 0, "SHELLDLL_DefView", null);<br />
            if (lSHELLDLLDefView == null)<br />
            {<br />
                return;<br />
            }<br />
            IntPtr lDUIViewWndClassName = FindWindowEx(lSHELLDLLDefView, IntPtr.Zero, "DUIViewWndClassName", IntPtr.Zero);<br />
            if (lDUIViewWndClassName == null)<br />
            {<br />
                return;<br />
            }<br />
            IntPtr lDirectUIHWND = FindWindowEx(lDUIViewWndClassName, IntPtr.Zero, "DirectUIHWND", IntPtr.Zero);<br />
            if (lDirectUIHWND == null)<br />
            {<br />
                return;<br />
            }<br />
            IntPtr lCtrlNotifySink = FindWindowEx(lDirectUIHWND, IntPtr.Zero, "CtrlNotifySink", IntPtr.Zero);<br />
            if (lCtrlNotifySink == null)<br />
            {<br />
                return;<br />
            }<br />
            IntPtr lSysListView32 = FindWindowEx(lCtrlNotifySink, IntPtr.Zero, "SysListView32", IntPtr.Zero);<br />
            if (lSysListView32 == null)<br />
            {<br />
                return;<br />
            }<br />
<br />
            //create new column<br />
            LVCOLUMN lvc = new LVCOLUMN();<br />
	    lvc.mask = 0x0001|0x0008|0x0002|0x0004;//LVCF_FMT|LVCF_SUBITEM|LVCF_WIDTH|LVCF_TEXT<br />
            lvc.fmt = 0x0001;<br />
            lvc.cx = 100;<br />
            lvc.text = "Author";<br />
<br />
            int counter = 0;<br />
            SendMessage(lSysListView32, 0x1000 + 97, counter, ref lvc);<br />
              <br />
	}


Not sure if this is the right forum but it is writen in C# but is probably more to do with good (well) old windows...

Many Thanks Calvin
AnswerRe: Windows Explorer Columns Pin
Dave Kreskowiak4-May-08 15:42
mveDave Kreskowiak4-May-08 15:42 
GeneralRe: Windows Explorer Columns Pin
Calvin Streeting6-May-08 12:46
Calvin Streeting6-May-08 12:46 
Questioncompile time error or runtime error? Pin
George_George3-May-08 23:42
George_George3-May-08 23:42 
AnswerRe: compile time error or runtime error? Pin
GuyThiebaut4-May-08 0:30
professionalGuyThiebaut4-May-08 0:30 
GeneralRe: compile time error or runtime error? Pin
Roger Alsing4-May-08 0:42
Roger Alsing4-May-08 0:42 
GeneralRe: compile time error or runtime error? Pin
George_George4-May-08 4:01
George_George4-May-08 4:01 
GeneralRe: compile time error or runtime error? PinPopular
Colin Angus Mackay4-May-08 4:35
Colin Angus Mackay4-May-08 4:35 
GeneralRe: compile time error or runtime error? Pin
George_George4-May-08 4:40
George_George4-May-08 4:40 
GeneralRe: compile time error or runtime error? Pin
Roger Alsing4-May-08 5:24
Roger Alsing4-May-08 5:24 
GeneralRe: compile time error or runtime error? Pin
George_George4-May-08 18:56
George_George4-May-08 18:56 
GeneralRe: compile time error or runtime error? [modified] Pin
Roger Alsing4-May-08 7:51
Roger Alsing4-May-08 7:51 
GeneralRe: compile time error or runtime error? Pin
George_George4-May-08 18:58
George_George4-May-08 18:58 
GeneralRe: compile time error or runtime error? Pin
George_George4-May-08 4:04
George_George4-May-08 4:04 
GeneralRe: compile time error or runtime error? Pin
Guffa4-May-08 14:19
Guffa4-May-08 14:19 
GeneralRe: compile time error or runtime error? Pin
George_George4-May-08 19:00
George_George4-May-08 19:00 
GeneralRe: compile time error or runtime error? Pin
Guffa4-May-08 23:25
Guffa4-May-08 23:25 
GeneralRe: compile time error or runtime error? Pin
George_George7-May-08 1:24
George_George7-May-08 1: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.