EzhNotes

April 19, 2008

open explorer at My Computer folder

Filed under: Uncategorized — alexezh @ 4:51 pm

ShellExecute(NULL,
L”explore”,
L”::{20D04FE0-3AEA-1069-A2D8-08002B30309D}”,
NULL,
NULL,
SW_SHOW);

April 13, 2008

MyDock 0.9.1001

Filed under: Uncategorized — alexezh @ 8:37 pm

New release is available here. Main changes are

* Added quit button
* Use high-quality icons if available
* Bug fixes

April 11, 2008

Migrating dev related items to codeplex

Filed under: Uncategorized — alexezh @ 9:48 pm

Created a project for tracking items and releases on CodePlex. See MyDock On CodePlex for more details

April 5, 2008

XMLDOM tricks

Filed under: Uncategorized — alexezh @ 6:11 pm

Add \r\n to the document when saving. Original info from Line breaks and IXMLDOMDocument

static LPCWSTR s_szFormatConfig = L””\
L” edit window is not XML friendly, see original post for details”;

static HRESULT FormatConfig(IXMLDOMDocument * pInDoc, CComPtr & spOutDoc)
{
HRESULT hr = S_OK;
CComPtr spSS;
VARIANT_BOOL vbSuccess;

IFC(CoCreateInstance(__uuidof(DOMDocument60),
NULL,
CLSCTX_INPROC_SERVER,
__uuidof(IXMLDOMDocument),
(void**)&spSS));

IFC(CoCreateInstance(__uuidof(DOMDocument60),
NULL,
CLSCTX_INPROC_SERVER,
__uuidof(IXMLDOMDocument),
(void**)&spOutDoc));

spSS->put_resolveExternals(VARIANT_FALSE);
spSS->put_preserveWhiteSpace(VARIANT_TRUE);

spOutDoc->put_resolveExternals(VARIANT_FALSE);
spOutDoc->put_preserveWhiteSpace(VARIANT_TRUE);

//
// load SS from string
//
IFC(spSS->loadXML(CComBSTR(s_szFormatConfig), &vbSuccess));
if(vbSuccess != VARIANT_TRUE)
{
hr = E_FAIL;
goto Cleanup;
}

//
// convert
//
IFC(pInDoc->transformNodeToObject(spSS, CComVariant(spOutDoc)));

Cleanup:

return hr;
}

Convert document to UTF8

static HRESULT ForceUTF8(IXMLDOMDocument * pDoc)
{
HRESULT hr = S_OK;
CComPtr spPI;
CComPtr spOldPI;
CComPtr spOutOldPI;
CComPtr spChildren;

IFC(pDoc->createProcessingInstruction(L”xml”, L”version=\”1.0\” encoding=\”UTF-8\””, &spPI));

IFC(pDoc->get_childNodes(&spChildren));

IFC(spChildren->get_item(0, &spOldPI));

IFC(pDoc->replaceChild( spPI, spOldPI, &spOutOldPI));

Cleanup:

return hr;
}

April 4, 2008

MyDock, 04-03-2007

Filed under: Uncategorized — alexezh @ 2:39 pm

Added window manager docklet. Window manager allow you to perform common operations on active window such as resize to half of screen, move to different monitor etc

April 2, 2008

MyDock home page

Filed under: Uncategorized — alexezh @ 5:25 pm

Just created a home page for MyDock.

TODO list

Filed under: Uncategorized — alexezh @ 4:19 pm

Some ideas for todo list

– OSX type Dashboard with SL2.0 applets
– Windows manager similar to vMax (in progress)
– Search box (similar to search in the start menu on Vista)
– Run docklet
– Hide windows taskbar
– Tray docklet
– Run as admin option

April 1, 2008

MyDock, bug fixes

Filed under: Uncategorized — alexezh @ 5:25 am

Minor bug fixes
– fix AV when closing application
– fix duplicated icons when starting mydock

Download from MyDock032107_1.zip

Blog at WordPress.com.