Skip to content

Instantly share code, notes, and snippets.

View botaor's full-sized avatar

Rui Botão botaor

View GitHub Profile
@botaor
botaor / curl proxy
Created March 10, 2013 17:35
Call curl with a proxy in windows using windows authentication
alias curlp="curl -U : --proxy-ntlm --proxy http://<proxy address>:<proxy port>"
@botaor
botaor / DialogShown.cpp
Created March 5, 2013 15:08
How to execute code after the dialog is just shown to the user in Windows MFC.
// Definition of the message code
#define WM_DIALOG_SHOW (WM_APP + 10)
// Functions that are members of the dialog class
class CMyDlg : public CDialog
{
...
afx_msg void OnWindowPosChanged( WINDOWPOS* lpwndpos );
afx_msg void OnDialogShow(WPARAM wp, LPARAM lp);