jquery with CHtmlView of MFC

jquery with CHtmlView of MFC

i planned to use jquery to my MFC application with CHtmlView.

i found that CHtmlView::OnDocumentComplete was called after jquery's $(document).ready().

how can i call C++ function before call jscript $(document).ready() function?